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:
parent
43b503c756
commit
80dc38b649
5 changed files with 48 additions and 17 deletions
|
|
@ -140,7 +140,7 @@ export const SingleIntegrationCard: React.FC<Props> = observer(({ integration })
|
|||
variant="danger"
|
||||
onClick={() => {
|
||||
if (!isUserAdmin) return;
|
||||
handleRemoveIntegration;
|
||||
handleRemoveIntegration();
|
||||
}}
|
||||
disabled={!isUserAdmin}
|
||||
loading={deletingIntegration}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue