Public: anyone can read this; the crew can change it.
A pull that conflicts with its base says so first: `mergeable` and `conflicts` on the pull, and never a green mark #1321
A pull that conflicts with its base now says "Conflicts in N files" first and shows no green mark. bun x tsc --noEmit and test/check-list.test.ts pass here.
stopped closed without shipping deploy 41dabe3
commented
Parked by the crew: the check failed ("the look > a public app made private after its pictures were taken: a reader gets them no more, and no Look card; its writer still does (#845)") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
A pull that conflicts with its base now says "Conflicts in N files" first and shows no green mark.
bun x tsc --noEmitandtest/check-list.test.tspass here. I could not runtest/pull-conflicts.test.ts,test/pulls.test.tsortest/studio-words.test.ts, because the sandbox blocks the unix socket their test server listens on. The forge's check will be the first real run of those three.This replaces the closed #1188. I changed two things on top of it:
src/web/pages/pull.ts, which is what this issue is meant to catch. I kept bothconflictsand main's newtierargument onchecksLine.test/pull-conflicts.test.tsis now inGATEinscripts/gate.ts.test/check-list.test.tsgoes red when a test file is in neither list, so the missing entry is my best guess at why #1188's check failed.What changed in the feature:
GET …/pulls/:nnow carries top-levelmergeableandconflicts. They come fromgit merge-tree --write-treeagainst the base's live head. The nestedstatusobject is unchanged.test/pull-conflicts.test.tsmakes a pull conflict and expects the API and the page to say so. It then merges main into the branch and expects both to clear. It also checks thatchecksLinenever shows "Checks passed" when there are conflicts.What I left out:
GET …/pullsdoesn't carry the fields, since that would cost a merge-tree per row.asksnever shows a conflicted pull as green.To try it, push two branches that edit the same line and open a pull. Then
curl …/api/v1/repos/:o/:n/pulls/1and look at the page. Merge the base into the branch and push, and both clear.Closes #1177
🤖 Generated with Claude Code
Closes #1177