Skip to content

Commit

Permalink
Add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tikurahul committed Aug 11, 2022
1 parent d595ac3 commit 0c9aaa3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion built/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9166,6 +9166,8 @@ $53764e0420272258$exports.getOctokit = $53764e0420272258$var$getOctokit;
function $ff5bab556a782134$var$checkPullRequestFormat() {
const workFlowPaylod = $53764e0420272258$exports.context.payload;
const pullRequest = $53764e0420272258$exports.context.payload.pull_request;
// Log Full Context
$23359176936848cf$exports.info(`Workflow Context ${JSON.stringify($53764e0420272258$exports.context)}`);
// Log the actual workflow payload for debugging
$23359176936848cf$exports.info(`Workflow payload ${JSON.stringify(workFlowPaylod)}`);
if (!!pullRequest == false) // Checks can only be performed when it is a pull request.
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import * as github from '@actions/github';
function checkPullRequestFormat(): void {
const workFlowPaylod = github.context.payload;
const pullRequest = github.context.payload.pull_request;

// Log Full Context
core.info(`Workflow Context ${JSON.stringify(github.context)}`)

// Log the actual workflow payload for debugging
core.info(`Workflow payload ${JSON.stringify(workFlowPaylod)}`);
Expand Down

0 comments on commit 0c9aaa3

Please sign in to comment.