A merged PR at the agent's HEAD also closes the run Done (#1395)

Co-authored-by: catomean <catomean@users.noreply.github.com>
This commit is contained in:
Catoandcatomean authored and GitHub committed 2026-10-21 23:39:49 +00:00
1 parent ea21c03415
commit 2c18d1f4de
4 files changed
+17 -3

No files matched your search

+2 -1
View File
@@ -15,7 +15,8 @@ const ok = {
assert.equal(shippedPr(ok), url);
assert.equal(shippedPr({ ...ok, dirty: true }), null, "uncommitted work: not done");
assert.equal(shippedPr({ ...ok, headSha: "abc1234" }), null, "unpushed commits: not done");
assert.equal(shippedPr({ ...ok, pr: { ...ok.pr, state: "MERGED" } }), null);
assert.equal(shippedPr({ ...ok, pr: { ...ok.pr, state: "MERGED" } }), url, "auto-merged already");
assert.equal(shippedPr({ ...ok, pr: { ...ok.pr, state: "CLOSED" } }), null);
assert.equal(shippedPr({ ...ok, pr: null }), null);
assert.equal(shippedPr({ ...ok, branch: "main" }), null);
assert.equal(shippedPr({ ...ok, pr: { ...ok.pr, url: "https://evil.example/pull/1" } }), null);