Skip to content

Commit

Permalink
fix: make compatible with latest octokit version.
Browse files Browse the repository at this point in the history
Part of #26 #28
  • 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
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/gh-action-get-changed-files@2.2.1
- uses: lots0logs/gh-action-get-changed-files@2.2.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
```
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
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
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
@@ -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.