diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-11-21 20:05:16 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-11-21 20:06:40 +0100 |
commit | 3160e842546a99e7ae82f40a2d67000d67daa066 (patch) | |
tree | c3810f728c63246a8e8aea2da6be410df9419016 /.github | |
parent | Merge pull request #12313 from louis-6wind/fix-lfa-topo (diff) | |
download | frr-3160e842546a99e7ae82f40a2d67000d67daa066.tar.xz frr-3160e842546a99e7ae82f40a2d67000d67daa066.zip |
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>
Diffstat (limited to '.github')
-rw-r--r-- | .github/labeler.yml | 2 | ||||
-rw-r--r-- | .github/workflows/labeler.yml | 20 | ||||
-rw-r--r-- | .github/workflows/mergifyio_backport.yml | 21 |
3 files changed, 21 insertions, 22 deletions
diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index af29289d3..000000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,2 +0,0 @@ -backport: - - '(Mergifyio backport )' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 9b01cd1b9..000000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/mergifyio_backport.yml b/.github/workflows/mergifyio_backport.yml new file mode 100644 index 000000000..bca8f34fe --- /dev/null +++ b/.github/workflows/mergifyio_backport.yml @@ -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 |