mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
Inform users that their Github organization has IP allow list enabled (#4270)
This commit is contained in:
parent
10ed2db693
commit
89f3d0c56d
1 changed files with 8 additions and 1 deletions
|
|
@ -265,6 +265,13 @@ export class GitHubIntegrationManager {
|
|||
};
|
||||
}
|
||||
|
||||
if (error.message.includes('organization has an IP allow list')) {
|
||||
return {
|
||||
success: false,
|
||||
error: `Your GitHub Organization has an IP allow list enabled, and our IP address is not permitted to access this resource. Please contact our support team to obtain the IP address.`,
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
success: false,
|
||||
error:
|
||||
|
|
@ -411,7 +418,7 @@ export class GitHubIntegrationManager {
|
|||
}
|
||||
|
||||
function isOctokitRequestError(error: unknown): error is RequestError {
|
||||
return error instanceof RequestError;
|
||||
return !!error && typeof error === 'object' && 'code' in error && 'status' in error;
|
||||
}
|
||||
|
||||
export type GitHubCheckRun = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue