diff --git a/.github/workflows/run-ci.yml b/.github/workflows/run-ci.yml index 1d96a65ce2bc48..00ba78b46bb567 100644 --- a/.github/workflows/run-ci.yml +++ b/.github/workflows/run-ci.yml @@ -21,13 +21,14 @@ jobs: const adder = context.payload.sender.login; const senderType = context.payload.sender.type; const pr = context.payload.pull_request; - const installation = context.payload.installation; + + console.log(`Sender: ${adder} (type: ${senderType})`); const trustedBotLogins = ['graphite-app[bot]']; let isAuthorized = false; - if (senderType === 'Bot' && installation && trustedBotLogins.includes(adder)) { - console.log(`Label added by trusted GitHub App: ${adder}`); + if (senderType === 'Bot' && trustedBotLogins.includes(adder)) { + console.log(`Authorized: trusted GitHub App`); isAuthorized = true; } @@ -43,7 +44,7 @@ jobs: return; } - console.log(`Label added by ${adder} (${perm.permission})`); + console.log(`Label added by ${adder}`); } // Find the latest pr.yml run for this PR's head SHA