mirror of
https://github.com/github/codeql-action.git
synced 2025-12-31 03:30:14 +08:00
11 lines
226 B
JavaScript
11 lines
226 B
JavaScript
const REGEX_ABUSE_LIMIT_MESSAGE = /\babuse\b/i;
|
|
function isAbuseLimitError(error) {
|
|
if (error.status !== 403) {
|
|
return false;
|
|
}
|
|
return REGEX_ABUSE_LIMIT_MESSAGE.test(error.message);
|
|
}
|
|
export {
|
|
isAbuseLimitError
|
|
};
|