Skip to content

docs: continue one conversation across Bitbucket Data Center review rounds - #1215

Open
ak684 wants to merge 1 commit into
mainfrom
alona/bitbucket-dc-continue-conversation
Open

ak684 wants to merge 1 commit into
mainfrom
alona/bitbucket-dc-continue-conversation

Conversation

@ak684

@ak684 ak684 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor
  • I have read and reviewed the documentation changes to the best of my ability.
  • If the change is significant, I have run the documentation site locally and confirmed it renders as expected.

Summary of changes

Adds a section to the Jira and Bitbucket Data Center event automations page: how to keep a pull request's review rounds in one conversation with destination: continue_conversation.

The page did not cover this, and the setup form does not offer the setting, so there was nothing to follow for Bitbucket Data Center. The section gives a complete create request (subject key per pull request, a turn_text_expr for the Bitbucket payload, a filter that excludes the automation's own replies, keep_alive), explains each field, and lists the limits: paused and deleted sandboxes, the per-user sandbox limit, and that the conversation belongs to one automation and source.

The request in the example was run against Bitbucket Data Center 9.4 on a self-hosted 0.103.0 install: three review comments on one pull request were handled in one conversation and sandbox without a second clone, a comment on another pull request got its own conversation, and the automation's replies did not trigger it. The paused-sandbox limit was also seen there; OpenHands/automation#832 addresses it, and the limit text should be updated once a release includes that fix. The page was not rendered locally.

@ak684

ak684 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

@OpenHands /codereview-roasted

Review exactly commit 5090bf3. If the PR head changes, report that and do not approve another commit. Review only: do not push code, merge, deploy, or change attribution. Check correctness, regression coverage, and whether the PR validation claims match the evidence. Keep code comments short. Post the substantive review and link it in your completion message. End the substantive review with these plain lines (no code fence), choosing one verdict:

REVIEWED_HEAD: 5090bf3
REVIEW_REQUEST: 2ea761c88bca45c69bcd787c094004fe
VERDICT: APPROVED

Use VERDICT: CHANGES_REQUESTED instead when findings require changes. If unable to review, explain the blocker without an approval verdict.

@mintlify

mintlify Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
all-hands-ai 🟢 Ready View Preview Dec 1, 2026, 9:46 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@openhands-ai

openhands-ai Bot commented Dec 1, 2026

Copy link
Copy Markdown

I'm on it! ak684 can track my progress here

@mintlify

mintlify Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
all-hands-ai 🟡 Building – Dec 1, 2026, 9:46 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@ak684 ak684 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: docs: continue one conversation across Bitbucket Data Center review rounds

Note: the formal GitHub review event here is COMMENT only because GitHub disallows a user from approving their own pull request (PR author == token owner). The substantive verdict below is APPROVED.

Reviewed commit 5090bf3c3f20b154e8f7d92f25d47f7d7715270d. PR head matches the requested review commit. Change: enterprise/automations/data-center-events.mdx (+75), a new section on keeping review rounds in one conversation with destination: continue_conversation.

Correctness

Verified the documented behavior against the automation service source (OpenHands/automation), the Agent SDK RepoSource, and this repo's own release notes.

Documentation claim Verified? Evidence
destination default is dispatch_run; continue_conversation sends later events to the subject's conversation ✅ schemas.py#L257
subject_key_expr names the subject events share; ignored unless destination is continue_conversation ✅ schemas.py#L265
turn_text_expr renders later turns; an unrecognized Bitbucket payload falls back to verbatim JSON ✅ schemas.py#L282, conversation_turn.py#L154
keep_alive is forced for continue_conversation; presets only got the rule in 0.110.0 ✅ schemas.py#L572, 0.110.0 notes
repos accepts provider: "bitbucket_data_center" ✅ SDK repo.py#L156
First event starts a run with the full event in the prompt; later events become turns, no re-run/clone ✅ ingest.py#L300, prompt preset sdk_main.py#L655
Conversation belongs to one automation + source; deleting/recreating re-keys threads ✅ subjects.py#L15
Example JMESPath expressions are valid and evaluate (filter excludes the bot's own replies; subject key yields ENG/payments/42) ✅ Ran the service's own validate_filter/evaluate_filter on the exact expressions
Paused-sandbox limit holds through 0.124.x; fix pending OpenHands/automation#832 (open, unmerged) ✅ automation#832; 0.124.0 is the latest chart release

Regression coverage

Documentation-only change; no runtime code is touched. The new section sits in the existing page flow, the JSON request body parses, and the expressions were run through the service's real evaluator.

Non-blocking note

In the subject_key_expr table row, "Events with the same result share a conversation" likely should read "same subject": the field is subject_key_expr and the page uses "subject" terminology everywhere else.

PR validation claims vs evidence

The PR body reports three review comments on one PR stayed in one conversation and sandbox (no second clone), a comment on another PR got its own conversation, and the automation's replies did not re-trigger. All three match the verified behavior: the subject-keyed conversation id, the per-PR subject key, and the filter excluding the bot's account and [openhands] marker.

REVIEWED_HEAD: 5090bf3
REVIEW_REQUEST: 2ea761c88bca45c69bcd787c094004fe
VERDICT: APPROVED

@openhands-ai

openhands-ai Bot commented Dec 1, 2026

Copy link
Copy Markdown

Review complete. Here is the summary.

What I did

Reviewed PR #1215 (docs: continue one conversation across Bitbucket Data Center review rounds) at exactly commit 5090bf3c3f20b154e8f7d92f25d47f7d7715270d — the PR head matches the requested review commit, so I did not approve any other commit. Review only: no pushes, merges, or attribute changes.

Substantive review posted: #1215 (review)

Verification performed

I verified the new continue_conversation section against the actual sources instead of trusting the docs' claims:

Claim Result
destination default dispatch_run / continue_conversation semantics ✅ automation/schemas.py#L257
subject_key_expr, turn_text_expr field behavior ✅ schemas.py#L265, #L282
Bitbucket payload falls back to verbatim JSON without turn_text_expr ✅ utils/conversation_turn.py#L154 (Bitbucket's comment.text is not in the built-in body paths)
keep_alive forced for continue_conversation; presets covered only since 0.110.0 ✅ schemas.py#L572 + enterprise/release-notes/0.110.0.mdx#L82
repos accepts provider: "bitbucket_data_center" ✅ SDK workspace/repo.py#L156
First event gets full payload; later turns only carry turn_text_expr ✅ ingest.py#L300, presets/prompt/sdk_main.py
One conversation per automation+source; delete/recreate re-keys threads ✅ subjects.py#L15
Paused-sandbox limit through 0.124.x; fix pending OpenHands/automation#832 (open, unmerged) ✅ confirmed latest chart release is 0.124.0
Example JMESPath expressions actually work ✅ ran the service's own validate_filter/evaluate_filter — filter correctly excludes the bot's own replies, subject key yields ENG/payments/42

Verdict

APPROVED — the documentation is accurate and matches the source behavior and the PR author's empirical validation claims.

One non-blocking note was included in the review: in the subject_key_expr table row, "Events with the same result share a conversation" likely should read "same subject" (the page uses "subject" terminology elsewhere).

One caveat about the formal review event: GitHub rejects APPROVE reviews on your own PR, and the token owner (ak684) is the PR author. I posted the substantive review as a PR Review with event COMMENT (the only self-permitted event), with the verdict explicitly stated as VERDICT: APPROVED in the body as requested:

REVIEWED_HEAD: 5090bf3c3f20b154e8f7d92f25d47f7d7715270d
REVIEW_REQUEST: 2ea761c88bca45c69bcd787c094004fe
VERDICT: APPROVED

@ak684
ak684 marked this pull request as ready for review December 1, 2026 21:59

This branch was successfully deployed

1 active deployment
staging — 5090bf3c Deployed Dec 1, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant