From 47257d05bbceb410c253736ca6665cda6c6861f3 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Wed, 8 Jun 2022 11:34:25 +0300 Subject: [PATCH] github: Add base branch label to every PR to distinguish easily Signed-off-by: Donatas Abraitis --- .github/workflows/base-branch-label.yml | 19 +++++++++++++++++++ 1 file changed, 19 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..01da280911 --- /dev/null +++ b/.github/workflows/base-branch-label.yml @@ -0,0 +1,19 @@ +name: Add base branch label + +on: + pull_request_target: + types: + - opened + - reopened + +jobs: + label: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: actions-ecosystem/action-add-labels@v1 + with: + labels: | + ${{ github.event.pull_request.base.ref }} -- 2.39.5