fix: align repo auto init with GitHub API#99
Merged
Conversation
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.
Description
Align repository creation with the GitHub REST API by removing the service-specific
add_readmecreate-repo option, using onlyauto_init, and seeding an emptyREADME.mdwhen auto-init is requested.Updates service tests, E2E scripts, smoke coverage, and docs to use the standard field.
Tracking
N/A
Tests
go test ./internal/gitstorego test ./internal/service -run '^$'go test ./internal/rest -run '^$'go test ./internal/githttp -run '^$'go test ./... -run '^$'bash -n e2e/code-search-e2e.sh e2e/repo-transfer-lifecycle.sh e2e/vector-search-e2e.sh scripts/backend_smoke.shpython3 scripts/doc_lint.pygit diff --checkRisks / Reviewer Notes
Clients that send the non-standard
add_readmefield will no longer trigger README seeding; callers should send GitHub-compatibleauto_init: true. Unknown JSON fields continue to be ignored by the existing decoder.SSOT Drift Prevention Checklist
docs/architecture.mdordocs/module-contracts.mddocs/test-strategy.mddocs/ci.md