From 6f34f07a3169b05af57d06428fca23c33354f2d2 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Wed, 11 Sep 2024 00:55:38 +0200 Subject: [PATCH] ci: enable automerge by default when backporting This will automatically merge backported PRs without human intervention if the tests pass. (cherry picked from commit 057314345a7cfc8e52bbe13a595759d6ca52ac20) --- .github/workflows/backport.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 0c3ba6be34..79d4bd115e 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -26,3 +26,8 @@ jobs: pull_title: "${pull_title}" label_pattern: "^ci:backport ([^ ]+)$" github_token: ${{ steps.app-token.outputs.token }} + + - name: Enable automerge + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh pr merge --rebase --auto ${{ steps.backport.outputs.created_pull_numbers }}