Repository navigation
feat(github): Resolve feedback on Junior-authored PRs - #1573
Merged
Merged
Conversation
Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
marked this pull request as ready for review
August 14, 2026 20:21
Make github_resolvePullRequestReviewThread the typed substitute for gh api graphql resolveReviewThread. Drop the extra PR number input, document the GraphQL-only path in the skill surface, and keep the Junior-authored ownership gate plus repo-scoped egress grant. Co-Authored-By: David Cramer <[email protected]>
Member
|
this only needs to have the author be the bot username, not worry about the footers.. |
This branch was successfully deployed
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.
Junior can reply to review feedback but cannot resolve the thread. GitHub only exposes resolve through GraphQL
resolveReviewThread(no REST endpoint, and no first-classgh prsubcommand yet).This PR adds
github_resolvePullRequestReviewThreadas the typed substitute for:gh api graphql \ -f query='mutation($id:ID!){resolveReviewThread(input:{threadId:$id}){thread{id isResolved}}}' \ -F id=THREAD_IDThe tool takes
repo+threadId(same GraphQL variable).repois required because GraphQL has no path for repository-scoped installation credentials.Before mutating, the tool loads the thread and requires the linked PR to be Junior-authored (bot login + session footer). Egress allows only that named mutation under the typed operation and scopes the installation credential to the target repo. Other GraphQL mutations stay denied.
Skill docs (
github-codeapi-surface / troubleshooting) now list this path the same way create/update PR tools are listed as the gh substitutes.Requested by David Cramer.
--
View Junior Session [Sentry]