diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..6dfe6d2 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,16 @@ +examples: + - changed-files: + - any-glob-to-any-file: 'examples/**' +dockerfiles: + - changed-files: + - any-glob-to-any-file: 'Dockerfiles/**' +docs: + - changed-files: + - any-glob-to-any-file: 'docs/**' +github_actions: + - changed-files: + - any-glob-to-any-file: '.github/**' +feature: + - head-branch: ['^feature', 'feature'] +fix: + - head-branch: ['^fix', 'fix'] diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml new file mode 100644 index 0000000..e0e2af0 --- /dev/null +++ b/.github/workflows/labeler.yaml @@ -0,0 +1,11 @@ +name: "Pull Request Labeler" +on: + - pull_request_target +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5