mirror of
https://github.com/github/codeql-action.git
synced 2026-04-28 01:48:48 +00:00
Merge pull request #2796 from github/nickfyson/adjust-rate-error-string
adjust string for handling rate limit error
This commit is contained in:
Generated
+1
-1
@@ -206,7 +206,7 @@ async function deleteActionsCache(id) {
|
||||
}
|
||||
function wrapApiConfigurationError(e) {
|
||||
if ((0, util_1.isHTTPError)(e)) {
|
||||
if (e.message.includes("API rate limit exceeded for site ID installation") ||
|
||||
if (e.message.includes("API rate limit exceeded for installation") ||
|
||||
e.message.includes("commit not found") ||
|
||||
/^ref .* not found in this repository$/.test(e.message)) {
|
||||
return new util_1.ConfigurationError(e.message);
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -249,7 +249,7 @@ export async function deleteActionsCache(id: number) {
|
||||
export function wrapApiConfigurationError(e: unknown) {
|
||||
if (isHTTPError(e)) {
|
||||
if (
|
||||
e.message.includes("API rate limit exceeded for site ID installation") ||
|
||||
e.message.includes("API rate limit exceeded for installation") ||
|
||||
e.message.includes("commit not found") ||
|
||||
/^ref .* not found in this repository$/.test(e.message)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user