Skip to content

Commit 953fc35

Browse files
chore: Add workflow to auto-label community PRs from forks (#865)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent daf7d48 commit 953fc35

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

0 commit comments

Comments
 (0)