diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..bc0772fb --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,17 @@ +bug: + - head-branch: ['^fix/'] + +enhancement: + - head-branch: ['^feat/'] + +maintenance: + - head-branch: ['^maint/'] + +documentation: + - head-branch: ['^doc/'] + +deprecation: + - head-branch: ['^depr/'] + +test: + - head-branch: ['^test/'] diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..3272b1d1 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,13 @@ +name: Label pull requests + +on: + - pull_request_target + +jobs: + labeller: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5