]> git.puffer.fish Git - matthieu/frr.git/commitdiff
github: Add base branch label to every PR to distinguish easily
authorDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 23 May 2022 13:56:39 +0000 (16:56 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 23 May 2022 13:58:07 +0000 (16:58 +0300)
Faster notice and filter backports by labels per release.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
.github/workflows/base-branch-label.yml [new file with mode: 0644]

diff --git a/.github/workflows/base-branch-label.yml b/.github/workflows/base-branch-label.yml
new file mode 100644 (file)
index 0000000..8fd273f
--- /dev/null
@@ -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 }}