From 50284f8e4b638d230d0e557c995069a2af3a70de Mon Sep 17 00:00:00 2001 From: Severin Neumann Date: Thu, 18 Apr 2024 08:33:54 +0200 Subject: [PATCH] Add pr labeler workflow (#4313) --- .github/component-label-map.yml | 76 +++++++++++++++++++++++++++++++++ .github/workflows/label-prs.yml | 16 +++++++ 2 files changed, 92 insertions(+) create mode 100644 .github/component-label-map.yml create mode 100644 .github/workflows/label-prs.yml diff --git a/.github/component-label-map.yml b/.github/component-label-map.yml new file mode 100644 index 000000000000..a91191aea426 --- /dev/null +++ b/.github/component-label-map.yml @@ -0,0 +1,76 @@ +blog: + - changed-files: + - any-glob-to-any-file: + - content/en/blog/** +sig:cpp: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/languages/cpp/** +sig:erlang: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/languages/erlang/** +sig:go: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/languages/go/** +sig:java: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/languages/java/** +sig:js: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/languages/js/** +sig:dotnet: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/languages/net/** +sig:php: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/languages/php/** +sig:python: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/languages/python/** +sig:ruby: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/languages/ruby/** +sig:rust: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/languages/rust/** +sig:swift: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/languages/swift/** +sig:operator: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/kubernetes/operator/** +sig:helm: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/kubernetes/helm/** +sig:security: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/security/** +sig:demo: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/demo/** +sig:collector: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/collector/** +sig:enduser: + - changed-files: + - any-glob-to-any-file: + - content/en/community/end-user/** +sig:spec: + - changed-files: + - any-glob-to-any-file: + - content/en/docs/specs/** diff --git a/.github/workflows/label-prs.yml b/.github/workflows/label-prs.yml new file mode 100644 index 000000000000..ffa50224c538 --- /dev/null +++ b/.github/workflows/label-prs.yml @@ -0,0 +1,16 @@ +name: 'Label PR' +on: + - pull_request_target + +jobs: + labeler: + name: 'Add component labels' + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/labeler@v5 + with: + configuration-path: '.github/component-label-map.yml'