Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
tot-ra committed Sep 12, 2023
1 parent f6bbe39 commit 91b3406
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9814,6 +9814,12 @@ const github = __nccwpck_require__(3737);
async function reviewPR() {
try {
const octokit = github.getOctokit(process.env.GITHUB_TOKEN)

console.log("Using this data for PR check", {
PR_NUMBER: process.env.PR_NUMBER,
PR_REPO: process.env.PR_REPO
})

const {data: pullRequest} = await octokit.rest.pulls.get({
owner: process.env.PR_OWNER,
repo: process.env.PR_REPO,
Expand All @@ -9823,7 +9829,7 @@ async function reviewPR() {
}
});

console.log({pullRequest});
console.log("Received this PR data:", pullRequest);

// `who-to-greet` input defined in action metadata file
// const nameToGreet = core.getInput('who-to-greet');
Expand Down

0 comments on commit 91b3406

Please sign in to comment.