From 9a05038d3a468e6d8ecfe7291e58dd6a663335ae Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Sat, 26 Sep 2026 14:12:02 +0100 Subject: [PATCH] ci: enable auto-merge on release pull requests --- .github/workflows/release-please.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index d37c286c87..6e3c5a8890 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -170,3 +170,13 @@ jobs: gh api --method POST "repos/${GITHUB_REPOSITORY}/statuses/${head_sha}" \ -f state=success -f context=Verify \ -f description="Product changes passed verification before release metadata update" >/dev/null + + - name: Enable release pull request auto-merge + if: steps.release.outputs.prs_created == 'true' + env: + # The delivery app merges, so the resulting push to main starts the tag and publish runs. + GH_TOKEN: ${{ steps.delivery-token.outputs.token }} + RELEASE_PRS: ${{ steps.release.outputs.prs }} + run: | + release_pr="$(jq -r '.[0].number // empty' <<< "${RELEASE_PRS}")" + gh pr merge "${release_pr}" --repo "${GITHUB_REPOSITORY}" --auto --squash