summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-12 21:57:51 +0100
committerChristian Breunig <christian@breunig.cc>2024-01-12 21:57:51 +0100
commit375dc0c9b5da7f51a1b7e89a965affab8266ba04 (patch)
tree89e3dcda6e477d9ee3e152946fba9e0e5e7d6943
parent516c2c43392907493f4157ea7d6d2149b725688b (diff)
downloadvyos-1x-375dc0c9b5da7f51a1b7e89a965affab8266ba04.tar.gz
vyos-1x-375dc0c9b5da7f51a1b7e89a965affab8266ba04.zip
GitHub: add pull request labaler
-rw-r--r--.github/labeler.yml12
-rw-r--r--.github/workflows/pull-request-labels.yml20
2 files changed, 32 insertions, 0 deletions
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 000000000..e0b9ee430
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,12 @@
+equuleus:
+ - any:
+ - base-branch: 'equuleus'
+current:
+ - any:
+ - base-branch: 'current'
+crux:
+ - any:
+ - base-branch: 'crux'
+sagitta:
+ - any:
+ - base-branch: 'sagitta'
diff --git a/.github/workflows/pull-request-labels.yml b/.github/workflows/pull-request-labels.yml
new file mode 100644
index 000000000..778daae30
--- /dev/null
+++ b/.github/workflows/pull-request-labels.yml
@@ -0,0 +1,20 @@
+---
+name: Add pull request labels
+
+on:
+ pull_request_target:
+ branches:
+ - current
+ - crux
+ - equuleus
+ - sagitta
+
+jobs:
+ add-pr-label:
+ name: Add PR Labels
+ runs-on: ubuntu-20.04
+ permissions:
+ contents: read
+ pull-requests: write
+ steps:
+ - uses: actions/labeler@v5.0.0-alpha.1