From 054afa03fb5cc3b7aa9da3138397bf7a281e7ede Mon Sep 17 00:00:00 2001 From: mattdimegs Date: Thu, 15 Aug 2024 15:35:45 -0400 Subject: [PATCH] Add Auto-Labeler for PRs --- .github/configs/pr-labeler.yml | 4 ++++ .github/workflows/pr-labeler.yml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/configs/pr-labeler.yml create mode 100644 .github/workflows/pr-labeler.yml diff --git a/.github/configs/pr-labeler.yml b/.github/configs/pr-labeler.yml new file mode 100644 index 0000000..5f0d708 --- /dev/null +++ b/.github/configs/pr-labeler.yml @@ -0,0 +1,4 @@ +feature: feature/* +bugfix: bugfix/* +hotfix: hotfix/* +documentation: ['documentation/*', 'setup/*'] \ No newline at end of file diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 0000000..697582c --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -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 \ No newline at end of file