Repository navigation
feat: check repository access before registration - #20
Merged
Merged
Conversation
Registering a new repository first lists the remote HEAD with the tokens its fetches will use (personal, site-wide, then anonymous where allowed). Unreadable repositories are not stored; credential failures carry code_provider, settings_url and guidance pointing at the token settings. POST /api/admin/v1/repos/access-check runs the same check alone. The website locks the form while checking, keeps its input on failure and offers to open the token settings in a new window with a retry button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Repositories were often registered although they could not be fetched (no read access); the failure only showed up in the first sync, after the registration was stored.
Changes
code_provider,settings_url(user token settings for signed-in callers, the site-wide token for the service credential) andguidance; a timeout returns retryable 504ACCESS_CHECK_TIMEOUT.POST /api/admin/v1/repos/access-checkruns the same check without registering.docs/interfaces.md.Risk
Compatibility
REPOSITORY_EXISTSare unchanged.ACCESS_CHECK_TIMEOUT.Testing
bun run checkandgo test ./...pass.🤖 Generated with Claude Code