Skip to content

Commit

Permalink
fix: make compatible with latest octokit version.
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed May 22, 2023
1 parent 4d47636 commit 6cb5164
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Saves lists of changed files in the `outputs` object and on the filesystem for u

### Workflow Config Example
```
- uses: lots0logs/[email protected].1
- uses: lots0logs/[email protected].2
with:
token: ${{ secrets.GITHUB_TOKEN }}
```
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13097,7 +13097,7 @@ function fetchCommitData(commit) {

debug('Calling gh.repos.getCommit() with args', args)

return gh.repos.getCommit(args);
return gh.rest.repos.getCommit(args);
}

function formatLogMessage(msg, obj = null) {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function fetchCommitData(commit) {

debug('Calling gh.repos.getCommit() with args', args)

return gh.repos.getCommit(args);
return gh.rest.repos.getCommit(args);
}

function formatLogMessage(msg, obj = null) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gh-action-get-changed-files",
"version": "2.2.1",
"version": "2.2.2",
"private": true,
"main": "dist/index.js",
"scripts":{
Expand Down

0 comments on commit 6cb5164

Please sign in to comment.