From 6cb5164a823dbf3318b7c8032a333b4b7ed425b2 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Sun, 21 May 2023 19:25:35 -0500 Subject: [PATCH] fix: make compatible with latest octokit version. Part of #26 #28 --- README.md | 2 +- dist/index.js | 2 +- index.js | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ce8da4d..e2a3b1a 100644 --- a/README.md +++ b/README.md @@ -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 }} ``` diff --git a/dist/index.js b/dist/index.js index 2c8cfc4..ea3e526 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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) { diff --git a/index.js b/index.js index 2ee122e..a99a7dd 100644 --- a/index.js +++ b/index.js @@ -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) { diff --git a/package.json b/package.json index 4e58a0c..17113e8 100644 --- a/package.json +++ b/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":{