diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000000..ca04d2b3abc02 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,86 @@ +build: + - changed-files: + - any-glob-to-any-file: + - '.github/**' + - 'gradle/**' + - '*gradlew*' + +clients: +- changed-files: + - any-glob-to-any-file: + - 'clients/**' + +connect: +- changed-files: + - any-glob-to-any-file: + - 'connect/**' + +core: +- changed-files: + - any-glob-to-any-file: + - 'core/**' + - '*server*/**' + +storage: +- changed-files: + - any-glob-to-any-file: + - 'storage/**' + +streams: +- changed-files: + - any-glob-to-any-file: + - 'streams/**' + +tests: +- changed-files: + - any-glob-to-all-files: + - 'tests/**' + - '**/test/**' + +tools: +- changed-files: + - any-glob-to-any-file: + - 'tools/**' + - 'trogdor/**' + - 'vagrant/**' + - 'committer-tools/**' + +docs: +- changed-files: + - any-glob-to-any-file: + - 'docs/**' + - '**/*.md' + - 'examples/**' + +docker: +- changed-files: + - any-glob-to-any-file: + - 'docker/**' + + +coordinator: +- changed-files: + - any-glob-to-any-file: + - 'group-coordinator/**' + - 'coordinator-common/**' + +performance: +- changed-files: + - any-glob-to-any-file: + - 'jmh-benchmarks/**' + +consumer: + - changed-files: + - any-glob-to-any-file: + - 'clients/src/main/java/org/apache/kafka/clients/consumer/**' + +producer: + - changed-files: + - any-glob-to-any-file: + - 'clients/src/main/java/org/apache/kafka/clients/producer/**' + +kraft: + - changed-files: + - any-glob-to-any-file: + - 'metadata/**' + - 'raft/**' \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000000..1fd783cb934b7 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,14 @@ +name: "Pull Request Labeler" +on: + pull_request_target: + types: [opened, reopened, synchronize] + + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5