From 8d4f0cf264232fb0ef264870dda75978b30e09b0 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 3 Sep 2026 11:30:31 +0200 Subject: [PATCH] tools: do not flag force push as invalid message Signed-off-by: Antoine du Hamel PR-URL: https://github.com/nodejs/node/pull/65700 Reviewed-By: Filip Skokan Reviewed-By: Marco Ippolito --- .github/workflows/notify-on-push.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/notify-on-push.yml b/.github/workflows/notify-on-push.yml index e709df93a8d..3c7b2175213 100644 --- a/.github/workflows/notify-on-push.yml +++ b/.github/workflows/notify-on-push.yml @@ -32,6 +32,9 @@ jobs: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} validateCommitMessage: + # If a commit is force-pushed out of the main branch, the `commits` array is + # empty and there are no checks to run. + if: github.event.commits[0] name: Notify on Push on `main` with invalid message # cannot use ubuntu-slim here because rtCamp/action-slack-notify is dockerized runs-on: ubuntu-24.04-arm