File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Label Community PRs
2+
3+ # This workflow automatically adds the "community" label to PRs from forks.
4+ # This enables automatic tracking on the Community PRs project board.
5+
6+ on :
7+ pull_request_target :
8+ types :
9+ - opened
10+ - reopened
11+
12+ jobs :
13+ label-community-pr :
14+ name : Add "Community" Label to PR
15+ # Only run for PRs from forks
16+ if : github.event.pull_request.head.repo.fork == true
17+ runs-on : ubuntu-24.04
18+ permissions :
19+ issues : write
20+ pull-requests : write
21+ steps :
22+ - name : Add community label
23+ # This action uses GitHub's addLabels API, which is idempotent.
24+ # If the label already exists, the API call succeeds without error.
25+ uses : actions-ecosystem/action-add-labels@bd52874380e3909a1ac983768df6976535ece7f8 # v1.1.3
26+ with :
27+ github_token : ${{ secrets.GITHUB_TOKEN }}
28+ labels : community
You can’t perform that action at this time.
0 commit comments