Debian Codegraph @

ansible_collections/amazon/aws/.github/workflows/backports-check.yml

raw
1 ---
2 name: Check Patchback Comment on Edit
3
4 on:
5 issue_comment:
6 types:
7 - edited
8
9 jobs:
10 # dump_context:
11 # runs-on: ubuntu-latest
12 # steps:
13 # - name: Dump context
14 # env:
15 # EVENT_CONTEXT: ${{ toJson(github.event) }}
16 # run: |
17 # echo "${EVENT_CONTEXT}"
18 check_patchback_comment:
19 # if patchback[bot] stops working we might want to switch to user.id == 45432694
20 if: ${{
21 github.event.issue.pull_request.merged_at &&
22 github.event.comment.user.login == 'patchback[bot]' &&
23 contains(github.event.comment.body, '💔 cherry-picking failed')
24 }}
25 runs-on: ubuntu-latest
26
27 steps:
28 - name: Add Label for Backport Failure
29 run: |
30 gh pr edit ${{ github.event.issue.number }} -R ${{ github.repository }} --add-label 'backport_failed'
31 env:
32 GH_TOKEN: ${{ github.token }}