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