Conversation
When a GitHub App installation loses write permissions to a user's repository, the API returns 403 Forbidden. This was unhandled, causing exceptions to bubble up to Sentry. Now treated as a noop since the permission issue is permanent and retrying won't help. Co-Authored-By: Claude Opus 4.6 <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.
Closes #8470
Closes #8472
Summary
Octokit::Forbiddento the rescue clause inCreatePullRequest, alongside existingOctokit::NotFoundhandling — returnsnilwhen the integration lacks permissionOctokit::Forbiddennoop rescue to all 4 sync commands (SyncIteration,SyncSolution,SyncTrack,SyncEverything) as a safety net for Forbidden errors fromCreateCommit,FindOrCreateBranch, andLocalGitRepoOctokit::NotFoundandGithubApp::InstallationNotFoundErrorTest plan
Octokit::ForbiddeninCreatePullRequest(returns nil)Octokit::Forbiddenin all 4 sync commandstest/commands/user/github_solution_syncer/pass🤖 Generated with Claude Code