From 654a803cb402753fc3a9af366ae61202d31e71aa Mon Sep 17 00:00:00 2001 From: TaiJuWu Date: Mon, 16 Sep 2024 03:21:49 +0000 Subject: [PATCH] init labeler --- .github/labeler.yml | 83 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 12 +++++ 2 files changed, 95 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000000..cfc1963d030e2 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,83 @@ +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