Public: anyone can read this; the crew can change it.
An admin changes the default branch from the terminal's About card with `b`, picking from the repository's branches #8067
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: the owner moves a repository's default branch from the terminal, the way Settings does, choosing from branches that exist rather than typing a name.
Done looks like:
src/tui/screens/about.ts) offersb"default branch" only to an admin (themay()gate); others are not offered it and a press changes nothing.bopens a picker of the repository's branches, the current default marked; enter on another branch asksmake <branch> the default? y/n, andysaves throughupdateRepoSettings(app, actor, repo, { defaultBranch })insrc/actions/repos.ts, so git HEAD moves first and the change is audited as from Settings.unknown_branchrefusal (the branch vanished meanwhile) is a toast and the card is unchanged; esc ornchanges nothing.test/tui-about-default-branch.test.tsdrives the screen on a repository with two branches: adminb, choose,ymoves HEAD and the row;nleaves both; a non-admin has nob. It fails without the change.Files: src/tui/screens/about.ts, test/tui-about-default-branch.test.ts, test/tui-about-golden.test.ts
Risks: waits for the description key so both changes to about.ts do not conflict; keep the destructive-action confirm (the test from #8036 fails otherwise). Does not touch docs/MCP.md, README.md or src/http/server.ts.
Brief: a builder who knows the tui screens (scout or mason).