diff --git a/dist/index.js b/dist/index.js index 506b321..5069864 100644 --- a/dist/index.js +++ b/dist/index.js @@ -14011,24 +14011,21 @@ async function run() { issue_pr_number = context.payload.pull_request.number; body = context.payload.pull_request.body; - core.debug(`${event_type} event triggered action, issue_pr_number: ${issue_pr_number}, body: ${body}`) + core.debug(`${event_type} event triggered action, pr_number: ${issue_pr_number}, body: ${body}`) // Issues event // Webhook Documentation: https://developer.github.com/v3/activity/events/types/#issuesevent } else if (event_type === 'issues') { - core.debug(`context.issue = ${context.issue}`); issue_pr_number = context.payload.issue.number; body = context.payload.issue.body; - core.debug(`${event_type} event triggered action, issue_pr_number: ${issue_pr_number}, body: ${body}`) + core.debug(`${event_type} event triggered action, issue_number: ${issue_pr_number}, body: ${body}`) // Issue comment event // Webhook Documentation: https://developer.github.com/v3/activity/events/types/#issuecommentevent } else { - core.debug(`context.issue = ${context.issue}`); - core.debug(`context.comment = ${context.comment}`); issue_pr_number = context.payload.issue.number; body = context.payload.comment.body; - core.debug(`${event_type} event triggered action, issue_pr_number: ${issue_pr_number}, body: ${body}`) + core.debug(`${event_type} event triggered action, issue_or_pr_number: ${issue_pr_number}, body: ${body}`) } if (body.includes(command)) { diff --git a/src/giphy-generator.js b/src/giphy-generator.js index 7a2f7e7..8fcf0a0 100644 --- a/src/giphy-generator.js +++ b/src/giphy-generator.js @@ -27,24 +27,21 @@ async function run() { issue_pr_number = context.payload.pull_request.number; body = context.payload.pull_request.body; - core.debug(`${event_type} event triggered action, issue_pr_number: ${issue_pr_number}, body: ${body}`) + core.debug(`${event_type} event triggered action, pr_number: ${issue_pr_number}, body: ${body}`) // Issues event // Webhook Documentation: https://developer.github.com/v3/activity/events/types/#issuesevent } else if (event_type === 'issues') { - core.debug(`context.issue = ${context.issue}`); issue_pr_number = context.payload.issue.number; body = context.payload.issue.body; - core.debug(`${event_type} event triggered action, issue_pr_number: ${issue_pr_number}, body: ${body}`) + core.debug(`${event_type} event triggered action, issue_number: ${issue_pr_number}, body: ${body}`) // Issue comment event // Webhook Documentation: https://developer.github.com/v3/activity/events/types/#issuecommentevent } else { - core.debug(`context.issue = ${context.issue}`); - core.debug(`context.comment = ${context.comment}`); issue_pr_number = context.payload.issue.number; body = context.payload.comment.body; - core.debug(`${event_type} event triggered action, issue_pr_number: ${issue_pr_number}, body: ${body}`) + core.debug(`${event_type} event triggered action, issue_or_pr_number: ${issue_pr_number}, body: ${body}`) } if (body.includes(command)) {