Skip to content

Commit

Permalink
Add Github workflow that adds backport_failed label when automatic ba…
Browse files Browse the repository at this point in the history
…ckports fail. (#2210)

* Add Github worflow that adds backport_failed label when automatic backports fail.
  • Loading branch information
alinabuzachis authored Jan 22, 2025
1 parent af56b7f commit b939dd4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/backports-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Check Patchback Comment on Edit

on:
issue_comment:
types:
- edited

jobs:
check_patchback_comment:
if: ${{
github.event.issue.pull_request.merged_at &&
github.event.comment.user.login == 'patchback[bot]' &&
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'
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit b939dd4

Please sign in to comment.