From 637eaa0b880fc154e4ee05b554f28eb7fcddcec9 Mon Sep 17 00:00:00 2001 From: Rootul Patel Date: Thu, 14 May 2026 12:23:08 -0700 Subject: [PATCH] ci(scrape): auto-merge the daily race-results PR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The daily scraper has been creating a PR every day since Feb 27 without ever merging any of them — 77 stale PRs accumulated by 2026-05-14. Root cause: the workflow opens a PR and stops. Nothing schedules a merge, so each daily PR sits open until a human merges it. Combined with the repo-level allow_auto_merge being off (now enabled separately), this guaranteed the backlog. Add `gh pr merge --auto --squash --delete-branch` after pr-create so each day's PR squash-merges itself once CI is green, and its branch is cleaned up automatically. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/scrape.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/scrape.yml b/.github/workflows/scrape.yml index a16ba61..2c5d5dd 100644 --- a/.github/workflows/scrape.yml +++ b/.github/workflows/scrape.yml @@ -77,3 +77,7 @@ jobs: --head "$BRANCH" \ --title "feat: add new race results" \ --body-file /tmp/pr-body.md + + # Request auto-merge so the PR squash-merges once CI passes, + # instead of piling up as a stale daily backlog. + gh pr merge "$BRANCH" --auto --squash --delete-branch