Skip to content

Commit 5b17d41

Browse files
committed
headers` arg was removed in v6 breaking change
https://github.com/octokit/request-error.js/releases/tag/v6.0.0 `headers` was removed in v6 breaking change
1 parent ba902bb commit 5b17d41

File tree

2 files changed

+79
-100
lines changed

2 files changed

+79
-100
lines changed

dist/index.js

Lines changed: 79 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,6 @@ test('it sets the action to failed if there is a request error', async () => {
509509
jest.spyOn(util, 'getBranchNames').mockReturnValue({ headName: 'dependabot|nuget|feature1', baseName: 'main' })
510510
jest.spyOn(dependabotCommits, 'getMessage').mockImplementation(jest.fn(
511511
() => Promise.reject(new RequestError('Something bad happened!', 500, {
512-
headers: {},
513512
request: {
514513
method: 'GET',
515514
url: 'https://api.github.com/repos/dependabot/dependabot/pulls/101/commits',

0 commit comments

Comments
 (0)