Repository navigation
Description
Provenance stamp: This issue was triaged on September 20, 2026 as part of the older-than-90-days GitHub issue triage exercise.
Summary
PR review mode is a closed, one-directional integration. It activates only for two hard-coded platforms, and even on those it can only post a new review — it cannot continue a conversation that already exists. Both source issues are consequences of that single shape.
The common requirement is that PR mode be described by a provider contract rather than a URL regex, and that a review thread be a two-way object rather than a read-only sidebar entry.
What the source issues requested
- Allow PR review mode override for third-party platforms (e.g., via thirtparty MCP etc Bitbucket ...) #671 requested an override mechanism so third-party integrations (an MCP server, a custom tool, Bitbucket) can activate the rich PR review UI with their own data — the way the External Annotations API already lets external sources push inline comments. Today
parsePRUrl()rejects any other URL andprMetadatastays null, so the header PR controls, Post Comments, thread UI and viewed sync never appear. The reporter offered to contribute. - [Feature Request] Render and continue GitHub PR review-thread comments inline on the diff #754 requested that GitHub review threads already fetched onto
PRContextbe rendered as markers anchored to the diff lines they belong to, visually distinct from the reviewer's own annotations, and that those threads be continuable from inside Plannotator — reply viaPOST /pulls/{n}/commentswithin_reply_to, and resolve/unresolve via the GraphQLresolveReviewThreadmutation.
Triage determination
Kept together because they touch the same boundary from opposite sides and would otherwise be designed twice. A provider contract that only supports "open a PR and post one review" would not be enough for a Bitbucket integration either — replying to an existing thread is table stakes on every platform. Conversely, building reply/resolve directly against gh's GitHub shapes would harden the two-platform assumption that #671 is asking to remove.
Current state verified on main (2026-09-20):
parsePRUrlrecognises only GitHub/GHE/pull/and GitLab/-/merge_requests/(packages/shared/pr-types.ts:347-380);PRRef.platformis a closed union (:305-314); every PR route requires aprMetadataproduced byfetchPRthroughgh/glab(packages/server/review.ts:220,295). No injection path exists.reviewThreadsare fetched and rendered only in the sidebar (packages/review-editor/components/PRCommentsTab.tsx:160-166);DiffViewerandAllFilesCodeViewreference them zero times.in_reply_toandresolveReviewThreadhave zero occurrences repo-wide;hideResolvedis a client-side filter, not a mutation.- What did ship and lowers the cost: launchable Review Agents ([Feature request] Allow AI agents to review code and show their suggestion in plannotator #611) put non-session-author findings on diff lines as inline comments, so the machinery for rendering a line-anchored marker that is not the reviewer's own already exists.
Acceptance criteria
- PR mode activation is expressed as a provider contract (identity, metadata, threads, submit, viewed-sync), not as a URL regex over two platforms.
- An external source can supply PR metadata and threads without Plannotator shipping that platform's client — the External Annotations API is the precedent for the shape.
- A provider may declare partial capability (for example: threads yes, viewed-sync no) and the UI hides what is unsupported rather than failing.
- Existing review threads render as markers anchored to their diff line, visually distinct from the reviewer's own annotations, with resolved threads hidden behind a toggle.
- A thread can be replied to from the diff or the PR Comments panel, and the reply appears in the thread without refetching the whole PR context.
- A thread can be resolved and unresolved from Plannotator, with local state updated accordingly.
- GitHub and GitLab remain fully supported through the same contract, with no regression to the current
gh/glabpaths. - The
--patch-filestatic-patch mode stays the documented answer for "just show me a diff", distinct from PR mode. - Allow PR review mode override for third-party platforms (e.g., via thirtparty MCP etc Bitbucket ...) #671 and [Feature Request] Render and continue GitHub PR review-thread comments inline on the diff #754 can be closed once their requirements are represented here. [Feature Request] Render and continue GitHub PR review-thread comments inline on the diff #754 carries an
acceptedcommitment, which this issue inherits.
Notes
If the maintainer would rather not couple these: the alternative is to keep #754 open on its own (it is the better-specified and more-demanded half, 4 👍) and close #671 with a direction for the contributor. Consolidating is recommended because the provider contract is what decides where the reply/resolve code lives.
Activity
Toparvion commentedon Sep 30, 2026
Looking forward for this to be implemented. I'm using Plannotator with cloud BitBucket which is now quite cumbersome. I hope the PR review mode will work well with Guided Review as it's a feature that makes the Plannotator the best-in-class tool for our team.
feat(review): Bitbucket Cloud PR review behind a PR provider seam (#1583
backnotprop commentedon Sep 30, 2026
@Toparvion Bitbucket Cloud PR review is out in v0.27.23.
plannotator review https://bitbucket.org/<workspace>/<repo>/pull-requests/<id>opens the PR with the diff, a local checkout, existing comments and Guided Review. From there you can post inline and general comments, approve, or request changes. It uses an Atlassian API token: setPLANNOTATOR_BITBUCKET_EMAILandPLANNOTATOR_BITBUCKET_TOKEN. The setup guide, including which token scopes to pick, is here: https://plannotator.ai/docs/guides/bitbucket/Not in yet: replying to or resolving existing threads, syncing viewed files back to Bitbucket, stacked PRs, and Bitbucket Data Center. This issue stays open for the thread work. Let us know how it goes with your team.
Toparvion commentedon Oct 1, 2026
@backnotprop , thank you for the rapid reaction and the implementation!
I've tested the 0.27.24 release against a real, quite large Pull Request in our BitBucket with:
General impression - works like a charm 🪄
A few observations by the way:
We'll keep using this feature, so more feedback can be gathered later.
fix(review): Bitbucket feedback from #1583 — open-PR popup, summary o…
backnotprop commentedon Oct 2, 2026
@Toparvion thanks for testing it on a real team PR. All three points are addressed in v0.27.25:
BASH_DEFAULT_TIMEOUT_MSin theenvblock of~/.claude/settings.json(for example"14400000"for 4 hours). Note it also raises the default for every other command Claude runs. Details are in the Claude Code guide under "Long reviews". Your comments are restored either way, as you saw.More feedback is very welcome.
DeLoWaN commentedon Oct 12, 2026
I am looking forward to this as well.
I am heavily using review and guided review to review my peers work, but I would also like to use plannotator to be able to respond to my peers comments on my own PRs.
As right now I still must use the web interface of gitlab to do it.