Public: anyone can read this; the crew can change it.
An upstream that merges cleanly opens one pull from upstream/<tip7>, and a branch someone planted there opens nothing #3978
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: following an upstream, layer 3 of 5 (split from #3622). Source:
refs/pull/3722/head, the proposal half ofsrc/actions/upstream_follow.ts.Done:
upstream/<tip7>at the fetched head and opens one pull, or updates the open one. A second check with nothing new opens nothing.upstream/<tip7>already exists,resolveOid(dir, 'refs/heads/' + name)must equal the fetched head. Otherwise the check fails, notes the error on the follow row, opens no pull and leaves the planted branch untouched. A squat test proves all three.bun x tsc --noEmitandbun test test/upstream_follow.test.tspass.Files:
src/actions/upstream_follow.ts,test/upstream_follow.test.ts. Risk: a branch name collision with a person's branch. The squat rule covers it. If the check fails where it ran and not in the change, say so in the pull.