Skip to content

Commit

Permalink
Add PR workflow for automatically labeling mapping changes. (new-fron…
Browse files Browse the repository at this point in the history
…tiers-14#778)

* Create pr-labeler.yml

* Update labeler.yml
  • Loading branch information
TsjipTsjip authored Dec 27, 2023
1 parent ee58a6a commit dd222bc
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
"Changes: Sprites":
- '**/*.rsi/*.png'
"Map":
- 'Resources/Maps/**/*.yml' # All .yml files in the Resources/Maps directory, recursive.
- 'Resources/Prototypes/Maps/frontier.yml'
- 'Resources/Prototypes/_NF/Shipyard/*.yml' # POI's are also here for some reason.

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

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

"No C#":
- all: ["!**/*.cs"]
"Shuttle":
- 'Resources/Maps/Shuttles/*.yml' # All .yml files directly in the Resources/Maps/Shuttles directory.
- 'Resources/Prototypes/_NF/Shipyard/*.yml' # Shuttles!
24 changes: 24 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler

# This is entirely a github default file, except for this comment, but it should be fine. -Tsjip

name: Labeler
on: [pull_request_target]

jobs:
label:

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit dd222bc

Please sign in to comment.