Open ljharb opened 2 years ago
Hi there! Was exploring the codebase and thought I could start working on this issue. If this issue is available, can I go for it?
I'm not working on this but I had a play around locally and here's something to help you get started:
rateLimit {
limit
cost
remaining
resetAt
}
Just add that object as part of the query in buildQuery.js
and after every subsequent api call it should return all of the data above. More details found here
This is super helpful! Thank you @Green-Ranger11
I'm not working on this but I had a play around locally and here's something to help you get started:
rateLimit { limit cost remaining resetAt }
Just add that object as part of the query in
buildQuery.js
and after every subsequent api call it should return all of the data above. More details found here
Hey! While exploring the codebase I felt I could try working on this issue. Since @MaheraFurniturewala has already picked it up, could I collaborate with her?
Go for it!
@ljharb I believe the first two action items are already done:
- ensure the token is never outputted to the console; i nearly posted this issue containing it unredacted catch this kind of error and report it better
- catch this kind of error and report it better
via #50 and our conversation here
I believe all that's left is the rate limit if I'm not mistaken
Edit:
ljharb/repo-report
shows a nice little message after each run to show the number of api points left.
output
```sh $ can-merge --remote=source --watch && git push source && git push origin Waiting for all checks to complete ... .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................$CAN_MERGE_REPO/node_modules/@octokit/graphql/dist-node/index.js:81 throw new GraphqlResponseError(requestOptions, headers, response.data); ^ GraphqlResponseError: Request failed due to following response errors: - API rate limit exceeded for user ID 45469. at $CAN_MERGE_REPO/node_modules/@octokit/graphql/dist-node/index.js:81:13 at runMicrotasks (Action items:
--watch
, but instead try again after a much longer delay?