From 89a87cd96d305ab1ee9745dcb0ac7afb8ff447c8 Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Tue, 14 Mar 2023 09:23:58 +0100 Subject: [PATCH] ci: add auto labeling for PRs (#1046) Signed-off-by: Moritz Wiesinger --- .github/labeler.yml | 23 +++++++++++++++++++++++ .github/workflows/update-labels.yml | 15 +++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/update-labels.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..55d9de5316 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,23 @@ +documentation: + - docs/**/* + - "**/*.md" + +operator: + - operator/**/* + +scheduler: + - scheduler/**/* + +metrics-operator: + - metrics-operator/**/* + +cert-manager: + - klt-cert-manager/**/* + +ops: + - .github/**/* + - netlify.toml + - .markdownlint-cli2.yml + +helm: + - helm/**/* diff --git a/.github/workflows/update-labels.yml b/.github/workflows/update-labels.yml new file mode 100644 index 0000000000..c1567890e2 --- /dev/null +++ b/.github/workflows/update-labels.yml @@ -0,0 +1,15 @@ +name: Set PR Labels + +on: + pull_request_target: +jobs: + set-labels: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-22.04 + steps: + - name: Update Labels + uses: actions/labeler@v4 + with: + sync-labels: true