Skip to content

Commit

Permalink
Merge pull request #162 from wagoid/dependabot/npm_and_yarn/actions/g…
Browse files Browse the repository at this point in the history
…ithub-5.0.0

chore(deps): bump @actions/github from 4.0.0 to 5.0.0
  • Loading branch information
wagoid authored Jul 17, 2021
2 parents ef84115 + d126fb6 commit 0fe4132
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 51 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Alternatively, you can run on other event types such as `on: [push]`. In that ca

## Inputs

You can supply these inputs to the `wagoid/commitlint-github-action@v3` step.
You can supply these inputs to the `wagoid/commitlint-github-action@v4` step.

### `configFile`

Expand Down
69 changes: 23 additions & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"homepage": "https://github.com/wagoid/commitlint-github-action",
"dependencies": {
"@actions/core": "^1.2.6",
"@actions/github": "^4.0.0",
"@actions/github": "^5.0.0",
"@commitlint/config-angular": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@commitlint/config-lerna-scopes": "^12.1.4",
Expand Down
2 changes: 1 addition & 1 deletion src/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 4 additions & 2 deletions src/action.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ const runAction = async () => {
const github = await import('@actions/github')
class MockOctokit {
constructor() {
this.pulls = {
listCommits,
this.rest = {
pulls: {
listCommits,
},
}
}
}
Expand Down

0 comments on commit 0fe4132

Please sign in to comment.