Skip to content

Commit

Permalink
Bump @octokit/plugin-throttling from 3.5.0 to 3.5.2 (#21)
Browse files Browse the repository at this point in the history
* Bump @octokit/plugin-throttling from 3.5.0 to 3.5.2

Bumps [@octokit/plugin-throttling](https://github.com/octokit/plugin-throttling.js) from 3.5.0 to 3.5.2.
- [Release notes](https://github.com/octokit/plugin-throttling.js/releases)
- [Commits](octokit/plugin-throttling.js@v3.5.0...v3.5.2)

---
updated-dependencies:
- dependency-name: "@octokit/plugin-throttling"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Updates for GitHub secondary rate limit renaming

Reference: octokit/plugin-throttling.js#438

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brian Flad <[email protected]>
  • Loading branch information
dependabot[bot] and bflad authored Dec 10, 2021
1 parent 558ac3a commit 0d65e1c
Show file tree
Hide file tree
Showing 7 changed files with 559 additions and 522 deletions.
6 changes: 3 additions & 3 deletions action.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,15 @@ ${sourceIssueBody}`,
await expect(scope.isDone()).toBeTruthy();
});

test('retries abuse limit errors', async () => {
test('retries secondary rate limit errors', async () => {
process.env['GITHUB_EVENT_PATH'] = path.join(__dirname, 'issue-labeled-payload.json');
process.env['INPUT_TARGET-REPOSITORY-NAME'] = targetRepoName;

const scope = nock('https://api.github.com')
.post(`/repos/${targetRepo}/issues`, mockIssueOpenedRequest)
.reply(403, {
message: "You have triggered an abuse detection mechanism and have been temporarily blocked from content creation. Please retry your request again later.",
documentation_url: "https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits"
message: "You have exceeded a secondary rate limit and have been temporarily blocked from content creation. Please retry your request again later.",
documentation_url: "https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits"
})
.post(`/repos/${targetRepo}/issues`, mockIssueOpenedRequest)
.reply(201, mockIssueOpenedResponse)
Expand Down
Loading

0 comments on commit 0d65e1c

Please sign in to comment.