From 6a255bace41e259641e79d29f88c2fd5bc052b6b Mon Sep 17 00:00:00 2001 From: Anunay Joshi Date: Tue, 10 Mar 2026 10:20:58 +0530 Subject: [PATCH 1/3] ci(workflow): handle WIP all cases --- .github/workflows/pr-notify-slack.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-notify-slack.yml b/.github/workflows/pr-notify-slack.yml index 2db1593609d1..ef4c49b8b086 100644 --- a/.github/workflows/pr-notify-slack.yml +++ b/.github/workflows/pr-notify-slack.yml @@ -1,4 +1,4 @@ -# Notify Slack when a PR is ready for review (not draft, title does not contain WIP). +# Notify Slack when a PR is ready for review (not draft, title does not contain WIP/wip/Wip.). # Triggers: new PR (non-draft, no WIP), draft -> ready, or title edited to remove WIP. name: PR notify Slack @@ -31,12 +31,16 @@ jobs: github.event_name == 'pull_request' && github.event.pull_request.draft == false && !contains(github.event.pull_request.title, 'WIP') && + !contains(github.event.pull_request.title, 'wip') && + !contains(github.event.pull_request.title, 'Wip') && ( github.event.action != 'edited' || ( github.event.changes.title && ( - contains(github.event.changes.title.from, 'WIP') + contains(github.event.changes.title.from, 'WIP') || + contains(github.event.changes.title.from, 'wip') || + contains(github.event.changes.title.from, 'Wip') ) ) ) From 05c1abdff77cc80cfc70929d95c5844ffaabfb55 Mon Sep 17 00:00:00 2001 From: Anunay Joshi Date: Mon, 16 Mar 2026 15:08:35 +0530 Subject: [PATCH 2/3] ci(workflow): refine WIP title checks for PR notifications --- .github/workflows/pr-notify-slack.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-notify-slack.yml b/.github/workflows/pr-notify-slack.yml index ef4c49b8b086..00f935e3ef65 100644 --- a/.github/workflows/pr-notify-slack.yml +++ b/.github/workflows/pr-notify-slack.yml @@ -30,17 +30,15 @@ jobs: if: | github.event_name == 'pull_request' && github.event.pull_request.draft == false && - !contains(github.event.pull_request.title, 'WIP') && - !contains(github.event.pull_request.title, 'wip') && - !contains(github.event.pull_request.title, 'Wip') && + !startsWith(github.event.pull_request.title, 'wip') && + !startsWith(github.event.pull_request.title, '[wip]') && ( github.event.action != 'edited' || ( github.event.changes.title && ( - contains(github.event.changes.title.from, 'WIP') || - contains(github.event.changes.title.from, 'wip') || - contains(github.event.changes.title.from, 'Wip') + startsWith(github.event.changes.title.from, 'wip') || + startsWith(github.event.changes.title.from, '[wip]') ) ) ) From 4540e4c3d470f85894a1ecd9e6850f01b8a28f73 Mon Sep 17 00:00:00 2001 From: Anunay Joshi Date: Mon, 16 Mar 2026 15:22:06 +0530 Subject: [PATCH 3/3] ci(workflow): change PR trigger to pull_request_target to enable notifications from fork PRs --- .github/workflows/pr-notify-slack.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pr-notify-slack.yml b/.github/workflows/pr-notify-slack.yml index 00f935e3ef65..435327d44c2e 100644 --- a/.github/workflows/pr-notify-slack.yml +++ b/.github/workflows/pr-notify-slack.yml @@ -3,7 +3,7 @@ name: PR notify Slack on: - pull_request: + pull_request_target: types: [opened, reopened, ready_for_review, edited] workflow_dispatch: @@ -28,7 +28,6 @@ jobs: notify: runs-on: ubuntu-latest if: | - github.event_name == 'pull_request' && github.event.pull_request.draft == false && !startsWith(github.event.pull_request.title, 'wip') && !startsWith(github.event.pull_request.title, '[wip]') &&