Skip to content

Commit

Permalink
Add GitHub Action to automatically label PRs (#871)
Browse files Browse the repository at this point in the history
Adds "needs code review" and "needs testing" to all new PRs

Co-authored-by: ASpoonPlaysGames <[email protected]>
  • Loading branch information
GeckoEidechse and ASpoonPlaysGames authored Sep 7, 2024
1 parent 62b9215 commit 05837fa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Add 'needs code review' label to any changes within the entire repository
needs code review:
- changed-files:
- any-glob-to-any-file: '**'

# Add 'needs testing' label to any changes within the entire repository
needs testing:
- changed-files:
- any-glob-to-any-file: '**'
14 changes: 14 additions & 0 deletions .github/workflows/auto-label-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Auto-Labeler
on:
pull_request_target:
types:
- opened

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5

0 comments on commit 05837fa

Please sign in to comment.