Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
milankomaj authored Aug 2, 2024
1 parent 185e858 commit 7a87373
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ class GithubUser {
owner: username,
repo: repo,
});
console.log("✅ request: {}:", request.request)
if (response.status === 202) {
const retryAfter = parseInt(response.headers["Retry-After"], 10) || 10; // Handle missing or invalid headers
octokit.log.info(
Expand All @@ -323,7 +322,7 @@ class GithubUser {
retryCount++;
}
} while (response.status === 202 && retryCount < 10); // Retry up to 10 times for "202"
// console.log("✅ response.headers:", response.headers)
console.log("✅ response.headers:", response)
return response; // Return the final response (200 or failed)
});

Expand Down

0 comments on commit 7a87373

Please sign in to comment.