Skip to content

Commit

Permalink
Merge pull request #2796 from github/nickfyson/adjust-rate-error-string
Browse files Browse the repository at this point in the history
adjust string for handling rate limit error
  • Loading branch information
nickfyson authored Mar 6, 2025
2 parents 608ccd6 + 7b7ed63 commit 911d845
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/api-client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/api-client.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
) {
Expand Down

0 comments on commit 911d845

Please sign in to comment.