From 3da33b248ab365ba9de9d617d4b90667a769d424 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Mon, 23 May 2022 16:56:39 +0300 Subject: [PATCH] github: Add base branch label to every PR to distinguish easily Faster notice and filter backports by labels per release. Signed-off-by: Donatas Abraitis --- .github/workflows/base-branch-label.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/base-branch-label.yml diff --git a/.github/workflows/base-branch-label.yml b/.github/workflows/base-branch-label.yml new file mode 100644 index 0000000000..8fd273fcee --- /dev/null +++ b/.github/workflows/base-branch-label.yml @@ -0,0 +1,17 @@ +name: Add base branch label + +on: + pull_request: + types: + - opened + - reopened + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-ecosystem/action-add-labels@v1 + with: + labels: | + ${{ github.event.pull_request.base.ref }} -- 2.39.5