Skip to content

Commit

Permalink
query repos--not git--endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Cote-Boucher committed Nov 10, 2019
1 parent 35af51a commit 15f2637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ try {
const ghToken = core.getInput('github_token');
const octokit = new Octokit(ghToken ? { auth: ghToken } : {});
const paths = core.getInput('paths').split(',');
const commit_sha = github.context.payload.head_commit.id;
const ref = github.context.payload.head_commit.id;
const [owner, repo] = github.context.payload.repository.full_name.split('/');
octokit.git.getCommit({ owner, repo, commit_sha })
octokit.repos.getCommit({ owner, repo, ref })
.then(({ data: { files } }, err) => {
if (err) throw new Error(err);
if (Array.isArray(files)) {
Expand Down

0 comments on commit 15f2637

Please sign in to comment.