From a7b3992564b4fad20576c3843b45e1854f7006a9 Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Thu, 7 May 2026 17:41:46 -0700 Subject: [PATCH] chore: do not send slack notification for draft --- .github/workflows/notify_slack.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/notify_slack.yml b/.github/workflows/notify_slack.yml index a401a8752..be4bdee59 100644 --- a/.github/workflows/notify_slack.yml +++ b/.github/workflows/notify_slack.yml @@ -4,7 +4,7 @@ on: issues: types: [opened, reopened] pull_request_target: - types: [opened, reopened] + types: [opened, reopened, ready_for_review] permissions: {} @@ -12,10 +12,6 @@ jobs: notify: runs-on: ubuntu-latest steps: - - name: Use Node.js - uses: actions/setup-node@v6 - with: - node-version: '24.x' - name: Send issue notification to Slack if: github.event_name == 'issues' uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3 @@ -30,7 +26,7 @@ jobs: } - name: Send pull request notification to Slack - if: github.event_name == 'pull_request_target' + if: github.event_name == 'pull_request_target' && github.event.pull_request.draft == false uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3 with: webhook: ${{ secrets.SLACK_WEBHOOK_URL_PR }}