From c76b3ee4952b045ddfdded9570dc7b8fbb32991d Mon Sep 17 00:00:00 2001 From: Andrew Stilliard Date: Mon, 16 Oct 2023 16:18:06 +0100 Subject: [PATCH] feat(logs): added X-GitHub-Request-Id: and context id, header requested by github to help with debugging ref #25 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e2e0049..6e7148d 100644 --- a/index.js +++ b/index.js @@ -42,7 +42,7 @@ module.exports = (app) => { return; } - log(pr, 'Request received'); + log(pr, `Request received [Context: ${context.id}]`); let prBody = pr.body; @@ -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; });