Skip to content

Commit

Permalink
ci: basic pr auto labeler (#55736)
Browse files Browse the repository at this point in the history
* ci: basic pr auto labeler

ci: basic pr auto labeler

Intended to automate what is otherwise a boring task for
maintainers, this uses basic glob matching to apply labels to prs

Not finished it's just the basics to get this boy rolling, it needs more
patters, probably the company of a smarter workflow based on something
else, maybe some colors, cover all mods (I'll let you do that mod
maintainers ;))

Contributes to #55729

* make patters more general
more general is better in this case, select major categories based on
file extensions
  • Loading branch information
casswedson authored Mar 4, 2022
1 parent eb631cd commit 8d56919
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
"C++":
- "**/*.cpp"
- "**/*.h"

"Json":
- "**/*.json"

"Python":
- "**/*.py"

"Documentation":
- "**/*.md"
- doc/**/*

"Code: Tooling":
- tools/**/*

"Code: Test":
- tests/**/*

"SDL: Tiles / Sound":
- gfx/**/*
- sound/**/*

"Translation":
- lang/**/*

"Mods: Aftershock":
- data/mods/Aftershock/**/*
- data/mods/aftershock_exoplanet/**/*

"Mods: Dark Days of the Dead":
- data/mods/classic_zombies/**/*

"Mods: Dark Skies":
- data/mods/Dark-Skies-Above/**/*

"Mods: Dinoclysm":
- data/mods/DinoMod/**/*

"Mods: Generic Guns":
- data/mods/Generic_Guns/**/*

"Mods: MMA":
- data/mods/MMA/**/*

"Mods: Magiclysm":
- data/mods/Magiclysm/**/*

"Mods: No Hope":
- data/mods/No_Hope/**/*
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Pull Request Labeler"
on:
- pull_request_target

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

0 comments on commit 8d56919

Please sign in to comment.