Skip to content

feat(github): Resolve feedback on Junior-authored PRs - #1573

Merged
dcramer merged 3 commits into
mainfrom
feat/resolve-owned-pr-feedback
Aug 14, 2026
Merged

dcramer merged 3 commits into
mainfrom
feat/resolve-owned-pr-feedback

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Junior can reply to review feedback but cannot resolve the thread. GitHub only exposes resolve through GraphQL resolveReviewThread (no REST endpoint, and no first-class gh pr subcommand yet).

This PR adds github_resolvePullRequestReviewThread as the typed substitute for:

gh api graphql \
  -f query='mutation($id:ID!){resolveReviewThread(input:{threadId:$id}){thread{id isResolved}}}' \
  -F id=THREAD_ID

The tool takes repo + threadId (same GraphQL variable). repo is 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-code api-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]

@vercel

vercel Bot commented Aug 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 14, 2026 9:00pm

Request Review

@dcramer
dcramer marked this pull request as ready for review August 14, 2026 20:21
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Aug 14, 2026
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]>
@github-actions github-actions Bot added risk: high PR risk score: high and removed risk: medium PR risk score: medium labels Aug 14, 2026
@dcramer

dcramer commented Aug 14, 2026

Copy link
Copy Markdown
Member

this only needs to have the author be the bot username, not worry about the footers..

Comment thread packages/junior-github/src/tools.ts Resolved
@dcramer
dcramer merged commit 7ff0128 into main Aug 14, 2026
38 checks passed
@dcramer
dcramer deleted the feat/resolve-owned-pr-feedback branch August 14, 2026 21:23

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 0adc2ba9 Deployed Aug 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant