Skip to content

Commit 2be323b

Browse files
committed
feat: list up to 100 commits at once resolves #717
1 parent 456526e commit 2be323b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/action.js

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const getRangeForEvent = async () => {
5858
owner,
5959
repo,
6060
pull_number: number,
61+
per_page: 100,
6162
})
6263
const commitShas = commits.map((commit) => commit.sha)
6364
const [from] = commitShas

src/action.test.js

+2
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ describe('Commit Linter action', () => {
332332
owner: 'wagoid',
333333
repo: 'commitlint-github-action',
334334
pull_number: '1',
335+
per_page: 100,
335336
}),
336337
).thenResolve({
337338
data: [first, to].map((sha) => ({ sha })),
@@ -397,6 +398,7 @@ describe('Commit Linter action', () => {
397398
owner: 'wagoid',
398399
repo: 'commitlint-github-action',
399400
pull_number: '1',
401+
per_page: 100,
400402
}),
401403
).thenReject(new Error('HttpError: Bad credentials'))
402404
td.replace(process, 'cwd', () => cwd)

0 commit comments

Comments
 (0)