fix: jira importer validations (#3323)

* fix: jira importer validations

* dev: update validation for cloud hostname

* dev: update the function to be used externally

* dev: update codeql workflow

* dev: update repository selection api
This commit is contained in:
Nikhil 2024-01-08 23:27:09 +05:30 committed by GitHub
parent 02a776396b
commit 4b0ccea146
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 17 deletions

View file

@ -86,7 +86,11 @@ export class ProjectService extends APIService {
}
async getGithubRepositories(url: string): Promise<GithubRepositoriesResponse> {
return this.request(url)
return this.request({
method: "get",
url,
headers: this.getAccessToken() ? this.getHeaders() : {},
})
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;