Skip to content

fix: propagate repository completion API errors - #3583

Open
pei711 wants to merge 1 commit into
github:mainfrom
pei711:fix/3581-propagate-repository-completion-errors
Open

pei711 wants to merge 1 commit into
github:mainfrom
pei711:fix/3581-propagate-repository-completion-errors

Conversation

@pei711

@pei711 pei711 commented Oct 25, 2026

Copy link
Copy Markdown

PR plan

Repository: github/github-mcp-server (33,942 live stars)
Issue: #3581
Base: main at f38526264abb14961b32cea386e38ec6d3cf674f
Head: pei711:fix/3581-propagate-repository-completion-errors
Files: pkg/github/repository_resource_completions.go, pkg/github/repository_resource_completions_test.go

Title

fix: propagate repository completion API errors

Body

Fix branch, tag, and commit resource completions to return GitHub API errors instead of empty successful results.

Added mock 403 regression coverage for all three endpoints. AI assistance was used to prepare the change; the full Go test suite and repository lint pass locally.

Closes #3581.

Validation

  • go test ./pkg/github -run '^TestCompleteRepositoryRefs_PropagatesListErrors$' -count=1 — passed
  • go test ./... — passed
  • ./script/lint — passed (0 issues)
  • git diff --check — passed

@pei711
pei711 requested a review from a team as a code owner October 25, 2026 17:23
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.

Repository resource completions hide branch, tag, and commit lookup errors

1 participant