11
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2026-04-01 07:16:54 +00:00

chore(deps): bump @actions/github from 4.0.0 to 5.0.0

Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2021-07-17 15:23:07 +00:00 committed by wagoid
parent ef84115a74
commit 940dc8ae05
4 changed files with 29 additions and 50 deletions

View file

@ -47,7 +47,7 @@ const getRangeForEvent = async () => {
const octokit = getOctokit(getInput('token'))
const { owner, repo, number } = eventContext.issue
const { data: commits } = await octokit.pulls.listCommits({
const { data: commits } = await octokit.rest.pulls.listCommits({
owner,
repo,
pull_number: number,

View file

@ -25,8 +25,10 @@ const runAction = async () => {
const github = await import('@actions/github')
class MockOctokit {
constructor() {
this.pulls = {
listCommits,
this.rest = {
pulls: {
listCommits,
},
}
}
}