Skip to content
Merged
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
28 changes: 28 additions & 0 deletions .github/workflows/label-community-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Label Community PRs

# This workflow automatically adds the "community" label to PRs from forks.
# This enables automatic tracking on the Community PRs project board.

on:
pull_request_target:
types:
- opened
- reopened

jobs:
label-community-pr:
name: Add "Community" Label to PR
# Only run for PRs from forks
if: github.event.pull_request.head.repo.fork == true
runs-on: ubuntu-24.04
permissions:
issues: write
pull-requests: write
steps:
- name: Add community label
# This action uses GitHub's addLabels API, which is idempotent.
# If the label already exists, the API call succeeds without error.
uses: actions-ecosystem/action-add-labels@bd52874380e3909a1ac983768df6976535ece7f8 # v1.1.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: community
Loading