Skip to content

Commit 349ab82

Browse files
hesreallyhimclaude
andcommitted
feat: add do-not-disturb label to skip merge notifications
Add support for a `do-not-disturb` label on resource PRs. When this label is present at merge time, the badge notification workflow will skip sending a congratulatory issue to the resource author's repository. This provides a manual toggle for maintainers to suppress notifications when needed. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bc50c7e commit 349ab82

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/notify-on-merge.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ jobs:
1010
# Only run when:
1111
# 1. PR was merged (not just closed)
1212
# 2. PR was created by github-actions bot (automated resource PR)
13+
# 3. PR does NOT have the 'do-not-disturb' label (allows skipping notifications)
1314
if: |
1415
github.event.pull_request.merged == true &&
15-
github.event.pull_request.user.login == 'github-actions[bot]'
16+
github.event.pull_request.user.login == 'github-actions[bot]' &&
17+
!contains(github.event.pull_request.labels.*.name, 'do-not-disturb')
1618
1719
runs-on: ubuntu-latest
1820

docs/HOW_IT_WORKS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The submission system uses several labels to track issue state:
2121

2222
- **`broken-links`** - Applied by scheduled link validation when resources become unavailable
2323
- **`automated`** - Applied alongside `broken-links` to indicate automated detection
24+
- **`do-not-disturb`** - Apply to a resource PR before merging to skip the badge notification to the resource author's repository
2425

2526
#### Label State Transitions
2627

0 commit comments

Comments
 (0)