diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..2868461 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,23 @@ +--- + +configuration: + - changed-files: + - any-glob-to-any-file: + - '**/*.yml' + - Dockerfile + - .shellcheckrc + - Makefile + +documentation: + - changed-files: + - any-glob-to-any-file: + - docs/** + - '**/*.md' + +source: + - changed-files: + - any-glob-to-any-file: src/** + +test: + - changed-files: + - any-glob-to-any-file: test/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..ca04e4e --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,19 @@ +--- + +name: Pull Request Labeler +on: + pull_request_target: + +permissions: + contents: read + +jobs: + labeler: + runs-on: ubuntu-latest + permissions: + pull-requests: write + + steps: + - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 #v5.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }}