Skip to content

Commit

Permalink
feat(logs): added X-GitHub-Request-Id: and context id, header request…
Browse files Browse the repository at this point in the history
…ed by github to help with debugging ref #25
  • Loading branch information
stilliard committed Oct 16, 2023
1 parent f2aa09c commit c76b3ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = (app) => {
return;
}

log(pr, 'Request received');
log(pr, `Request received [Context: ${context.id}]`);

let prBody = pr.body;

Expand Down Expand Up @@ -129,7 +129,7 @@ module.exports = (app) => {

// send check back to GitHub
const response = await context.octokit.checks.create(context.repo(check));
log(pr, `Check response status from GitHub ${response.status}`);
log(pr, `Check response status from GitHub ${response.status} [X-GitHub-Request-Id: ${response.headers['x-github-request-id']}]`);

return;
});
Expand Down

0 comments on commit c76b3ee

Please sign in to comment.