gabriel / musehub public
feat BREAKING task/typing-audit #4 / 4
AI Agent gabriel · 70 days ago · Apr 12, 2026 · Diff

feat: add fork visibility, guard private repos, fix default visibility tests

- Add visibility field to ForkRepoRequest (defaults to public) - Fork source-private check raises ValueError('source_repo_private') - list_repo_forks_flat filters to public forks only - get_user_forks filters to public when viewer != owner - _guard_visibility raises 401 for unauthenticated access to private repos - Fix test_create_repo_default_visibility_is_private → public (repos default public) - Update migration constants: _HEAD=0042, _ALL_REVISIONS includes 0041+0042 - Add musehub_forks to _REQUIRED_TABLES in section36 migration tests

sha256:e883dee62e36af28206c3fb06d64a8095ecb6a5e152511dedb2454529569060d sha
sha256:b3de038e841c66ee8c02bc7a604731a83ff1a1caf572cb6ce062d44c36146827 snapshot

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:e883dee62e36af28206c3fb06d64a8095ecb6a5e152511dedb2454529569060d --body "your comment"