Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/pr-notify-slack.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# 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

on:
pull_request:
pull_request_target:
types: [opened, reopened, ready_for_review, edited]
workflow_dispatch:

Expand All @@ -28,15 +28,16 @@ jobs:
notify:
runs-on: ubuntu-latest
if: |
github.event_name == 'pull_request' &&
github.event.pull_request.draft == false &&
!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')
startsWith(github.event.changes.title.from, 'wip') ||
startsWith(github.event.changes.title.from, '[wip]')
)
)
)
Expand Down
Loading