AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(dx): batch bot — findRollupPR head filter matches nothing after first rollup (#13538)
Nicholas Tindlea8d9d05e6917
diff --git a/.github/batch-bot/batch.mjs b/.github/batch-bot/batch.mjsindex c57cfce888..48aaf6dae0 100644--- a/.github/batch-bot/batch.mjs+++ b/.github/batch-bot/batch.mjs@@ -150,9 +150,12 @@ function buildRollup(list) {// --- rollup PR (sticky status + deploy + merge target) -------------------function findRollupPR() {- const owner = REPO.split("/")[0];+ // Plain branch name only: `gh pr list --head` does NOT understand the+ // owner-qualified `owner:branch` form (that's a `pr create` convention) —+ // it silently matches nothing, which made every rebuild after the first+ // try to create a duplicate rollup PR and die on "already exists".const rows = ghJSON([- "pr", "list", "--repo", REPO, "--head", `${owner}:${ROLLUP}`, "--base", BASE, "--state", "open",+ "pr", "list", "--repo", REPO, "--head", ROLLUP, "--base", BASE, "--state", "open","--json", "number,url",]);return rows[0] || null;