summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-11-18 09:09:29 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-11-18 09:10:45 +0200
commitbd22ae9ed483402355e8a59629317284059d634e (patch)
treeef2d701015e037f88b4d0cc7e575288fba21d5be
parentb7de3fe8a9907d37f9f7726a87e488de7f1f9ec4 (diff)
github: Add `backport` label if pull request has `Mergifyio backport` comment
Useful to filter out which PRs should be backported yet. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
-rw-r--r--.github/labeler.yml2
-rw-r--r--.github/workflows/labeler.yml19
2 files changed, 21 insertions, 0 deletions
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 0000000000..af29289d33
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,2 @@
+backport:
+ - '(Mergifyio backport )'
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
new file mode 100644
index 0000000000..79bb73f414
--- /dev/null
+++ b/.github/workflows/labeler.yml
@@ -0,0 +1,19 @@
+name: Labeler
+
+on:
+ pull_request_target:
+ types:
+ - opened
+ - reopened
+
+jobs:
+ labeler:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ pull-requests: write
+ steps:
+ - uses: github/issue-labeler@v2.5
+ with:
+ repo-token: "${{ secrets.GITHUB_TOKEN }}"
+ configuration-path: .github/labeler.yml