Skip to content

Commit 8f03ff4

Browse files
committed
ci: only add non-draft PRs to project board
- Remove issues trigger (too noisy; revisit once stale/close cadence settles) - Add ready_for_review trigger so draft PRs are added when published - Skip job when PR is draft (guards the opened event) Assisted-by: Claude Sonnet 4.6
1 parent ec10094 commit 8f03ff4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/add-to-project.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Add to project
22

33
on:
4-
issues:
5-
types:
6-
- opened
7-
- transferred
84
pull_request_target:
95
# SECURITY NOTE: pull_request_target runs in the base repo context and has access to
106
# secrets, even for PRs from forks. This is intentional — pull_request does NOT have
@@ -17,13 +13,16 @@ on:
1713
# reassessing the security implications.
1814
types:
1915
- opened
16+
- ready_for_review
2017

2118
permissions:
2219
contents: read
2320

2421
jobs:
2522
add-to-project:
2623
runs-on: ubuntu-latest
24+
# Skip draft PRs; ready_for_review will trigger when they are published
25+
if: github.event.pull_request.draft == false
2726
steps:
2827
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
2928
id: otelbot-token

0 commit comments

Comments
 (0)