From f87673977c9f11fb70dc867699c44a62cc006553 Mon Sep 17 00:00:00 2001 From: Alina Buzachis Date: Fri, 17 Jan 2025 11:30:42 +0100 Subject: [PATCH] Add Github worflow that adds backport_failed label when automatic backports fail. Signed-off-by: Alina Buzachis --- .github/workflows/backports-check.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/backports-check.yml diff --git a/.github/workflows/backports-check.yml b/.github/workflows/backports-check.yml new file mode 100644 index 00000000000..aaadf50ab72 --- /dev/null +++ b/.github/workflows/backports-check.yml @@ -0,0 +1,20 @@ +--- +name: Check Patchback Comment on Edit + +on: + issue_comment: + types: + - edited + +jobs: + check_patchback_comment: + if: > + ${{ github.event.pull_request.merged }} == true && + github.event.comment.user.login == 'patchback' && + contains(github.event.comment.body, '💔 cherry-picking failed') + runs-on: ubuntu-latest + + steps: + - name: Add Label for Backport Failure + run: | + gh pr edit ${{ github.event.issue.number }} -R ${{ github.repository }} --add-label 'backport-failed'