Repository navigation
fix(pull-requests): name the repository and the token, not a commit, when GitHub refuses access - #218
Merged
Merged
Conversation
…when GitHub refuses access Closes #149
This was referenced Sep 22, 2026
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.
Closes #149
--repoor the credentials, so the message names the repository and the likely causes (misspelled--repo, private repository without a token that can read it). A later 404 stays a commit problem, since the repository was readable a request earlier.x-accepted-github-permissions(e.g.pull_requests=read) when GitHub names the missing permission.422 No commit found for SHA. That case gets its own message: not a checkout of--repo, or the commit is not pushed.x-ratelimit-remaining: 0says the budget is spent, not that access is missing - the startup notice from feat(cli): warn at startup when a run has no GitHub token #110 already predicts that failure.messagefield; the body is the fallback only when it is not JSON.GITHUB_TOKEN, so the message stays true when it is renamed.Not in here:
GitHubReleaseNotesWriterhas the same raw-JSON pattern when publishing; separate issue.Repro, release build against the real API (
preview --tag v0.1.0-preview.1 --since <sha>):--repodoes not exist, no token404 Not Found for commit 8930f18... {"message":"Not Found",...}GitHub cannot read goldbarth/does-not-exist-xyz (404 Not Found).+ no token + likely causes--repodoes not exist, token setGitHub rejected the token in GITHUB_TOKEN (401 Unauthorized): it is expired, revoked or mistyped.--repo goldbarth/chartula-evalsCommit 8930f18... is not in goldbarth/chartula-evals on GitHub (422 ...)+ checkout or unpushedTests: 6 new in
GitHubPullRequestReaderTests(404 first request, 403 with permission header, later 404, 422, 401, rate limit); full suite 643 passing, build anddotnet formatclean.