diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000000..18add6c2e282f --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,64 @@ +clients: +- changed-files: + - any-glob-to-any-file: 'clients/**' + +config: +- changed-files: + - any-glob-to-any-file: 'config/**' + +connect: +- changed-files: + - any-glob-to-any-file: 'connect/**' + +core: +- changed-files: + - any-glob-to-any-file: 'core/**' + +raft: +- changed-files: + - any-glob-to-any-file: 'raft/**' + +storage: +- changed-files: + - any-glob-to-any-file: 'storage/**' + +streams: +- changed-files: + - any-glob-to-any-file: 'streams/**' + +tests: +- changed-files: + - any-glob-to-any-file: 'tests/**' + +tools: +- changed-files: + - any-glob-to-any-file: ['tools/**', 'trogdor/**', "vagrant/**", committer-tools/**"] + +metadata: +- changed-files: + - any-glob-to-any-file: 'metadata/**' + + +docs: +- changed-files: + - any-glob-to-any-file: ['docs/**', "**/*.md"] + +docker: +- changed-files: + - any-glob-to-any-file: 'docker/**' + +server: +- changed-files: + - any-glob-to-any-file: 'server/**' + +coordinator: +- changed-files: + - any-glob-to-any-file: '*coordinator*/**' + +examples: +- changed-files: + - any-glob-to-any-file: 'examples/**' + +benchmarks: +- changed-files: + - any-glob-to-any-file: 'jmh-benchmarks/**' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000000..e57cd86e2b3c7 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +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