Repository navigation
fix: report a refused publication next to the files the run wrote - #221
Merged
Merged
Conversation
3 tasks
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 #219
Follows #218
x-accepted-github-permissions) is quoted when present. The pull requests were read a moment earlier, so a refusal here is about writing - most likely the read-only token the docs recommend until a run publishes.messagefield, against the tag instead of an API path (repos/.../releases/42).InvalidOperationException(the port's documented failure) and returns it asReleaseOutcome.PublishFailurenext toWrittenOutputs. Before, the exception dropped the list and the run printed only the error.CHANGELOG.mdsection and draft rather than adding to them (checked inChangelogMarkdownComposer), but pays for the model calls again. Exit code 1, as for a failed audience.GitHub/GitHubErrorResponseholds what fix(pull-requests): name the repository and the token, not a commit, when GitHub refuses access #218 put in the pull request reader (message, token sent, named permission, rate limit), now shared by both adapters. A 401 counts as a rejected token only when one was sent; without one it is the missing token.docs/cli.md: what a refused publication leaves behind.Verified: the real
GitHubReleaseNotesWriteragainstapi.github.comwithout a token (nothing can be written that way):Not verified end-to-end: the full
generaterun up to the refusal (needs a paid model run) and the 403 with a real read-only token; both covered by tests, the token case comes with the token-permission check still pending.Tests: 3 new in
GitHubReleaseNotesWriterTests(read-only token with named permission, no token, other error in GitHub's words), 1 inReleasePipelineTests(refusal keeps the written files), 1 inReleaseCommandOutputTests(listing, message, exit code 1); full suite 651 passing, build anddotnet formatclean.