From 2e1ffe8cbb04a38844c7711412290f721625774a Mon Sep 17 00:00:00 2001 From: Louis Bompart Date: Tue, 15 Oct 2024 20:57:47 -0400 Subject: [PATCH] chore: add auto-label for v2 PRs (#4505) Quickwin: Label all PR open against with v2 with the v2 label so that we can identify quickly what's in v2, what ain't https://coveord.atlassian.net/browse/KIT-3639 --- .github/labeler.yml | 2 ++ .github/workflows/label.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000000..9f438c9b5d9 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,2 @@ +v2: + - base-branch: 'v2' diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 00000000000..99475972cef --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,14 @@ +name: Labeler +on: [pull_request_target] + +jobs: + label: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v4 + with: + repo-token: '${{ secrets.GITHUB_TOKEN }}'