From bb25f3bb190ae4372ec80fac1f73e77d9ab169bb Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Fri, 1 May 2026 16:06:03 -0700 Subject: [PATCH] chore: do not send notification for draft prs --- .github/workflows/notify_slack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify_slack.yml b/.github/workflows/notify_slack.yml index f40ead9..1f286d0 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: {} @@ -26,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@03ea5433c137af7c0495bc0cad1af10403fc800c # v3.0.2 with: webhook: ${{ secrets.SLACK_WEBHOOK_URL_PR }}