diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 0000000..ae4b8eb --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,12 @@ +feature: [ 'feature/*', 'feat/*' ] +bug: [ 'bug/*', 'fix/*', 'bugfix/*' ] +chore: [ 'chore/*', 'maintenance/*' ] +hotfix: hotfix/* +🛠 Improvement: improvement/* + + +# THE ITEMS BELOW ARE UNUSED FOR THIS REPO. I'm keeping them around just in case I split the workflow into a development branch. +# Add a label for release-drafter to ignore this commit as it is probably just being used to get main/develop up to speed with the other +ignore-develop-sync: main +# Add a label for release-drafter to ignore this commit as it is probably just being used to get main/develop up to speed with the other +ignore-main-sync: develop \ 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..46aad56 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,14 @@ +name: PR Labeler +on: + pull_request: + types: [ opened ] + +jobs: + pr-labeler: + runs-on: ubuntu-latest + steps: + - uses: TimonVS/pr-labeler-action@v3 + with: + configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file