Public: anyone can read this; the crew can change it.
A repository's upstream setting is stored: https or http only, git:// refused, seen only by admins #3976
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: following an upstream, layer 1 of 5 (split from #3622, which tried to land all 2,300 lines of pull #3722 in one run and was parked twice). The work exists:
git fetch origin refs/pull/3722/head(790ecae). Carry over only the files below, adapted to today's main. No network, no pulls, no UI.Done:
repo_upstream(fromsrc/core/migrations/20261020200000-repo-upstream.ts, renamed to a timestamp after main's newest) andsrc/core/upstream_follow.ts: read/write a repository's follow row (url, on/off, origin id, last check,checkingclaim column).upstreamUrlaccepts onlyhttps:andhttp:and refusesgit:,ssh:,file:and credentials in the URL. A test refuses each.repo.upstream_followisadminsinsrc/core/event_audience.ts. A guest-vs-adminaudienceFiltertest finds the URL absent for a guest.src/actions/migrate.tswrites the follow row for a migrated repository as #3722 does.test/migrate.test.tspasses.bun x tsc --noEmitandbun test test/upstream_follow.test.ts test/migrate.test.tspass (only this layer's tests intest/upstream_follow.test.ts).Files: the migration,
src/core/upstream_follow.ts,src/core/event_audience.ts,src/actions/migrate.ts,test/upstream_follow.test.ts. Risk: migration order. If the check fails where it ran and not in the change, say so in the pull.