Add Auto-Labeler for PRs

This commit is contained in:
mattdimegs 2024-08-15 15:35:45 -04:00
parent 2c04bfa14d
commit 054afa03fb
2 changed files with 23 additions and 0 deletions

4
.github/configs/pr-labeler.yml vendored Normal file
View file

@ -0,0 +1,4 @@
feature: feature/*
bugfix: bugfix/*
hotfix: hotfix/*
documentation: ['documentation/*', 'setup/*']

19
.github/workflows/pr-labeler.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: PR Labeler
on:
pull_request:
types: [opened]
permissions:
contents: read
jobs:
pr-labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/configs/pr-labeler.yml