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>
This commit is contained in:
Donatas Abraitis 2022-11-18 09:09:29 +02:00
parent b7de3fe8a9
commit bd22ae9ed4
2 changed files with 21 additions and 0 deletions

2
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,2 @@
backport:
- '(Mergifyio backport )'

19
.github/workflows/labeler.yml vendored Normal file
View File

@ -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