From 3921466aae0292d292c6e7ff822461252187b3f6 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 17 Mar 2026 15:02:16 -0500 Subject: [PATCH] chore: auto-merge lockfile refresh PRs --- .github/workflows/refresh-lockfile.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/refresh-lockfile.yml b/.github/workflows/refresh-lockfile.yml index a879e5bc..9f28fc28 100644 --- a/.github/workflows/refresh-lockfile.yml +++ b/.github/workflows/refresh-lockfile.yml @@ -79,3 +79,15 @@ jobs: else echo "PR #$existing already exists, branch updated via force push." fi + + - name: Enable auto-merge for lockfile PR + env: + GH_TOKEN: ${{ github.token }} + run: | + pr_url="$(gh pr list --head chore/refresh-lockfile --json url --jq '.[0].url')" + if [ -z "$pr_url" ]; then + echo "Error: lockfile PR was not found." >&2 + exit 1 + fi + + gh pr merge --auto --squash --delete-branch "$pr_url"