Skip to content

Commit

Permalink
Log context
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Dec 31, 2023
1 parent 3b2f65f commit 7bd537b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140546,6 +140546,8 @@ function addPRComment(content) {
const context = github.context;
if (context.payload.pull_request == null) {
core.info('Not a PR');
core.info(`Issue number: ${context.issue.number}`);
core.info(`Context payload: ${JSON.stringify(context.payload)}`);
return;
}
const pull_request_number = context.payload.pull_request.number;
Expand Down
2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137867,6 +137867,8 @@ function addPRComment(content) {
const context = github.context;
if (context.payload.pull_request == null) {
core.info('Not a PR');
core.info(`Issue number: ${context.issue.number}`);
core.info(`Context payload: ${JSON.stringify(context.payload)}`);
return;
}
const pull_request_number = context.payload.pull_request.number;
Expand Down
2 changes: 1 addition & 1 deletion dist/post/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/job-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ async function addPRComment(content: string): Promise<void> {
const context = github.context
if (context.payload.pull_request == null) {
core.info('Not a PR')
core.info(`Issue number: ${context.issue.number}`)
core.info(`Context payload: ${JSON.stringify(context.payload)}`)
return
}

Expand Down

0 comments on commit 7bd537b

Please sign in to comment.