From 5cfd2db4e2b0c8b4fac1cd54ee9fb16b56d8fa24 Mon Sep 17 00:00:00 2001 From: Mike McNeil Date: Sat, 15 Jul 2023 23:19:32 -0500 Subject: [PATCH] GitHub automation: Listen for "synchronize" events (#12804) --- website/api/controllers/webhooks/receive-from-github.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/website/api/controllers/webhooks/receive-from-github.js b/website/api/controllers/webhooks/receive-from-github.js index 9022a07178..650561f535 100644 --- a/website/api/controllers/webhooks/receive-from-github.js +++ b/website/api/controllers/webhooks/receive-from-github.js @@ -249,7 +249,7 @@ module.exports = { ); } else if ( - (ghNoun === 'pull_request' && ['opened','reopened','edited'].includes(action)) + (ghNoun === 'pull_request' && ['opened','reopened','edited', 'synchronize'].includes(action)) ) { // ██████╗ ██╗ ██╗██╗ ██╗ ██████╗ ███████╗ ██████╗ ██╗ ██╗███████╗███████╗████████╗ // ██╔══██╗██║ ██║██║ ██║ ██╔══██╗██╔════╝██╔═══██╗██║ ██║██╔════╝██╔════╝╚══██╔══╝ @@ -309,10 +309,9 @@ module.exports = { } // Request review from DRI - // [?] History: https://github.com/fleetdm/fleet/pull/12786) - // (only relevant for paths NOT in the CODEOWNERS file) - // (Draft PRs are also skipped) - if (!issueOrPr.draft && ['opened','edited'].includes(action)) { + // History: https://github.com/fleetdm/fleet/pull/12786) (only relevant for paths NOT in the CODEOWNERS file) + // (Draft PRs are skipped) + if (!issueOrPr.draft) { let reviewers = [];//« GitHub usernames of people to request review from.