Skip to content

Commit

Permalink
Update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 8, 2024
1 parent 488dd88 commit 5c66196
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30794,15 +30794,16 @@ var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
(() => {
const core = __nccwpck_require__(2186);
const { context, GitHub } = __nccwpck_require__(5438);
const githubReq = __nccwpck_require__(5438);
const fs = (__nccwpck_require__(7147).promises);
const path = __nccwpck_require__(1017);

console.log('Starting.');

async function run() {
try {
const github = new GitHub(core.getInput('token'));
const context = githubReq.context;
const github = github.getOctokit(core.getInput('token'));
const isPullRequest = context.payload.pull_request;
const commits = !isPullRequest ? context.payload.commits.filter(c => c.distinct) : [{
id: context.payload.pull_request.head.sha
Expand All @@ -30820,7 +30821,7 @@ async function run() {
ref: commits[i].id
};

const ret = await github.repos.getCommit(args);
const ret = await github.rest.repos.getCommit(args);

if(ret && ret.data && ret.data.files) {
for(let y = 0; y < ret.data.files.length; y++) {
Expand Down

0 comments on commit 5c66196

Please sign in to comment.