mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 00:59:13 +00:00
github: Use action-regex-match
action for adding backport
label
Seems that labeler does not work properly with comments, tested on my own local repository. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
9d44fb97a1
commit
3160e84254
2
.github/labeler.yml
vendored
2
.github/labeler.yml
vendored
@ -1,2 +0,0 @@
|
||||
backport:
|
||||
- '(Mergifyio backport )'
|
20
.github/workflows/labeler.yml
vendored
20
.github/workflows/labeler.yml
vendored
@ -1,20 +0,0 @@
|
||||
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
|
||||
enable-versioned-regex: 0
|
21
.github/workflows/mergifyio_backport.yml
vendored
Normal file
21
.github/workflows/mergifyio_backport.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: Mergifyio backport
|
||||
|
||||
on: [issue_comment]
|
||||
|
||||
jobs:
|
||||
mergifyio_backport:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions-ecosystem/action-regex-match@v2
|
||||
id: regex-match
|
||||
with:
|
||||
text: ${{ github.event.comment.body }}
|
||||
regex: '[Mm]ergifyio backport '
|
||||
|
||||
- uses: actions-ecosystem/action-add-labels@v1
|
||||
if: ${{ steps.regex-match.outputs.match != '' }}
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
labels: backport
|
Loading…
Reference in New Issue
Block a user