Skip to content

Commit

Permalink
Add Github worflow that adds backport_failed label when automatic bac…
Browse files Browse the repository at this point in the history
…kports fail.

Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Jan 17, 2025
1 parent af56b7f commit f876739
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/backports-check.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit f876739

Please sign in to comment.