Skip to content

Commit 59839a6

Browse files
committed
fix: add workflow_dispatch trigger and skip draft PRs
- Add workflow_dispatch trigger with pr_number input to allow manual testing - Add condition to skip draft PRs (only notify when PR is not a draft)
1 parent 2cdb2cb commit 59839a6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/pr-slack-notify.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,23 @@ on:
55
types:
66
- opened
77
- ready_for_review
8+
workflow_dispatch:
9+
inputs:
10+
pr_number:
11+
description: 'PR number to test with'
12+
required: true
13+
type: number
814

915
permissions:
1016
contents: read
1117

1218
jobs:
1319
notify:
20+
if: github.event.pull_request.draft == false
1421
uses: e2b-dev/.github/.github/workflows/pr-slack-notify.yml@main
1522
secrets:
1623
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
1724
with:
1825
channel_id: ${{ vars.SLACK_CHANNEL_ID }}
1926
review_group: ${{ vars.SLACK_REVIEW_GROUP }}
27+
pr_number: ${{ inputs.pr_number }}

0 commit comments

Comments
 (0)