mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 08:06:54 +00:00
feat: list up to 100 commits at once resolves #717
This commit is contained in:
parent
456526eec7
commit
2be323bc44
2 changed files with 3 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ const getRangeForEvent = async () => {
|
|||
owner,
|
||||
repo,
|
||||
pull_number: number,
|
||||
per_page: 100,
|
||||
})
|
||||
const commitShas = commits.map((commit) => commit.sha)
|
||||
const [from] = commitShas
|
||||
|
|
|
|||
|
|
@ -332,6 +332,7 @@ describe('Commit Linter action', () => {
|
|||
owner: 'wagoid',
|
||||
repo: 'commitlint-github-action',
|
||||
pull_number: '1',
|
||||
per_page: 100,
|
||||
}),
|
||||
).thenResolve({
|
||||
data: [first, to].map((sha) => ({ sha })),
|
||||
|
|
@ -397,6 +398,7 @@ describe('Commit Linter action', () => {
|
|||
owner: 'wagoid',
|
||||
repo: 'commitlint-github-action',
|
||||
pull_number: '1',
|
||||
per_page: 100,
|
||||
}),
|
||||
).thenReject(new Error('HttpError: Bad credentials'))
|
||||
td.replace(process, 'cwd', () => cwd)
|
||||
|
|
|
|||
Loading…
Reference in a new issue