Skip to content

Commit 8ac607c

Browse files
Alex Wangwangyb-A
authored andcommitted
chore: do not send notification for draft prs
1 parent a61e7ff commit 8ac607c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/notify_slack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
issues:
55
types: [opened, reopened]
66
pull_request_target:
7-
types: [opened, reopened]
7+
types: [opened, reopened, ready_for_review]
88

99
permissions: {}
1010

@@ -26,7 +26,7 @@ jobs:
2626
}
2727
2828
- name: Send pull request notification to Slack
29-
if: github.event_name == 'pull_request_target'
29+
if: github.event_name == 'pull_request_target' && github.event.pull_request.draft == false
3030
uses: slackapi/slack-github-action@03ea5433c137af7c0495bc0cad1af10403fc800c # v3.0.2
3131
with:
3232
webhook: ${{ secrets.SLACK_WEBHOOK_URL_PR }}

0 commit comments

Comments
 (0)