Skip to content

feat: add default-repo-visibility server setting#788

Open
gmbuell wants to merge 1 commit intocharmbracelet:mainfrom
gmbuell:feat/default-repo-visibility
Open

feat: add default-repo-visibility server setting#788
gmbuell wants to merge 1 commit intocharmbracelet:mainfrom
gmbuell:feat/default-repo-visibility

Conversation

@gmbuell
Copy link
Copy Markdown

@gmbuell gmbuell commented Mar 4, 2026

Summary

  • Adds a default-repo-visibility server setting (public/private, defaults to public)
  • New repos from push-to-create (SSH + HTTP) and repo create respect this setting
  • Admin-only, managed via ssh ... settings default-repo-visibility [public|private]
  • Includes DB migration, full store/backend plumbing, and testscript coverage

Test plan

  • go build ./... passes
  • go test ./pkg/db/migrate/... passes
  • go test ./testscript/ -run TestScript/settings passes

Add a configurable server setting to control whether new repositories
are created as public or private by default. Affects push-to-create
(SSH and HTTP) and the explicit `repo create` command.

Usage: `ssh ... settings default-repo-visibility [public|private]`
@gmbuell gmbuell requested a review from aymanbagabas as a code owner March 4, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant