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 sriram veeraghanta
parent 43b503c756
commit 80dc38b649
5 changed files with 48 additions and 17 deletions

View file

@ -140,7 +140,7 @@ export const SingleIntegrationCard: React.FC<Props> = observer(({ integration })
variant="danger"
onClick={() => {
if (!isUserAdmin) return;
handleRemoveIntegration;
handleRemoveIntegration();
}}
disabled={!isUserAdmin}
loading={deletingIntegration}

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;