Skip to content

Commit

Permalink
Auto-labeling actions for pull requests (#6117)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirrorcult authored Jan 10, 2022
1 parent a8d010d commit 81fb52c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 41 deletions.
41 changes: 0 additions & 41 deletions .github/keylabeler.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"Changes: Sprites":
- '**/*.rsi/*.png'

"Changes: Map":
- 'Resources/Maps/*.yml'
- 'Resources/Prototypes/Maps/*.yml'

"Changes: UI":
- '**/*.xaml*'

"No C#":
- all: ["!**/*.cs"]
16 changes: 16 additions & 0 deletions .github/workflows/labeler-needsreview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Labels: Review"

on:
pull_request_target:
types: [review_requested]

jobs:
add_label:
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: "Status: Needs Review"
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: "Status: Awaiting Changes"
12 changes: 12 additions & 0 deletions .github/workflows/labeler-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Labels: PR"

on:
- pull_request_target

jobs:
labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 81fb52c

Please sign in to comment.