Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: amondnet/now-deployment
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 879caae1d67c8bf5acca05f2a8d8d0d44c73fbba
Choose a base ref
..
head repository: amondnet/now-deployment
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0725211c2129b03e2166cb3cfc45aeb34d40d609
Choose a head ref
Showing with 8 additions and 7 deletions.
  1. +8 −7 index.js
15 changes: 8 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -39,13 +39,14 @@ async function run() {
} else {
core.info("comment : disabled");
}
const pull = await octokit?.pulls?.get({
...context.repo,
pull_number: context.payload.pull_request.number
});
if ( pull ) {
core.debug(JSON.stringify(pull));
core.debug(`ref : ${context.payload.pull_request.html_url}`);
if ( octokit ) {
const pull = await octokit.pulls.get({
...context.repo, pull_number: context.payload.pull_request.number
});
if (pull) {
core.debug(JSON.stringify(pull));
core.debug(`ref : ${context.payload.pull_request.html_url}`);
}
}
}