diff options
author | dundargoc <gocdundar@gmail.com> | 2024-09-13 15:27:57 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-09-13 16:49:35 +0200 |
commit | 4c23b834562f1d0587beef130c5e8ac434607358 (patch) | |
tree | d113966e046d34e379e6d73db4bcb112583d09e9 | |
parent | 5284a2a793160d911efd136a6da1c2c4e2d6d996 (diff) | |
download | rneovim-4c23b834562f1d0587beef130c5e8ac434607358.tar.gz rneovim-4c23b834562f1d0587beef130c5e8ac434607358.tar.bz2 rneovim-4c23b834562f1d0587beef130c5e8ac434607358.zip |
ci: add `needs:backport` label on backport PRs with conflict
This makes it easy to keep track of which backport PRs have failed and
need manual intervention to fix.
-rw-r--r-- | .github/workflows/backport.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 79d4bd115e..9c80cd85e1 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -27,6 +27,18 @@ jobs: label_pattern: "^ci:backport ([^ ]+)$" github_token: ${{ steps.app-token.outputs.token }} + - name: Create failed backport label + if: ${{ steps.backport.outputs.was_successful == 'false' }} + uses: actions/github-script@v7 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['needs:backport'] + }) + - name: Enable automerge env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |