Skip to content

chore: describe the <details> layout, not its producer - #9963

Open
tpouyer wants to merge 1 commit into
fullsend-ai:mainfrom
tpouyer:chore/9516-jira-adf-reword-comments-cite-sticky
Open

tpouyer wants to merge 1 commit into
fullsend-ai:mainfrom
tpouyer:chore/9516-jira-adf-reword-comments-cite-sticky

Conversation

@tpouyer

@tpouyer tpouyer commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Three comments in internal/forge/jira/adf.go credited the pre-#9334 CLIs — and the sticky history folding they ran, since removed by #9986 — for the markup they handle; each now describes the layout itself. A comments-only change: no statement lines changed, no behaviour change, no new tests (every acceptance criterion is wording a reviewer checks in the diff).

Related Issue

Refs #9516 — the issue's done criteria were met by #9986 when it removed the sticky history folding; this PR is the wording improvement that change left behind.

Changes

  • adfBlockContent's <details> note: describes the two forms the converter handles — single-block, and multi-block where blank lines inside the markup split it across AST siblings — and points to tryDetailsExpand's doc for the full layout taxonomy, instead of attributing the multi-block form to the history folding (hand-written Markdown produces it too).
  • stickyHistorySentinelPattern's doc: states why the stripping stays. The sentinels are metadata the sticky history folding wrote when collapsing an older comment body into a new one; GitHub and GitLab keep that Markdown verbatim, and a Jira comment written before <details> blocks were mapped to expand nodes can hold a sentinel as literal text, so a body quoted from an older comment can still carry them.
  • tryDetailsExpand's multi-block bullet: any body whose markup contains blank lines takes this form, however it was written or copied.

Testing

  • hack/ci-local/ci-local go-test passes (repo-wide)
  • go vet ./... passes; make lint passes
  • Coverage: 0/0 changed statement lines (comment-only)
  • CI green

Checklist

  • PR title follows Conventional Commits
  • Commits are signed off (DCO)
  • I wrote this contribution myself and can explain all changes in it

@tpouyer
tpouyer requested a review from a team as a code owner November 30, 2026 21:46
@qodo-code-review

qodo-code-review Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

chore(#9516): describe the layout, not its producer

📝 Documentation 🕐 Less than 10 minutes

Grey Divider

AI Description

• Rewords three Jira ADF comments to describe the  layout, not sticky.BuildUpdatedBody.
• Explains why sentinel stripping stays: legacy Jira bodies and quoted comments can carry sentinels.
• Comment-only change; no statement, behaviour, or test changes.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 0 capabilities

  • No production behavior changes identified.
Behavioral complexity 🟢 Low 🧩 Assessed behavior

  • No production behavior changes identified.
Potential damage 🟢 Low 🩹 Assessed behavior

  • No production behavior changes identified.
Assessed commit 3f94c9f
Diagram

graph TD
  A["sticky.go writer"] & C["issues.go writers"] --> B["Sentinel markers"] --> D["Strip pattern"] --> E["tryDetailsExpand"] --> F["ADF expand node"]
Loading
High-Level Assessment

Rewording the comments is the right fix for a change that only alters documentation. The main alternative, deleting the sentinel pattern and both stripping sites, was dismissed because the sentinel writers are still live and legacy Jira bodies can contain the sentinels as literal text. Keeping the stripping avoids visible leakage into expand nodes.

Files changed (1) +17 / -12

Documentation (1) +17 / -12
adf.goReword <details> and sentinel comments to describe layout, not producer +17/-12

Reword <details> and sentinel comments to describe layout, not producer

• The adfBlockContent note now describes the single-block and multi-block <details> forms and points to tryDetailsExpand's doc instead of crediting sticky.BuildUpdatedBody. The stickyHistorySentinelPattern doc explains why stripping stays, since sentinels are still written and legacy Jira bodies can carry them. The tryDetailsExpand bullet says any body with blank lines takes the multi-block form, however it was written. No code statements changed.

internal/forge/jira/adf.go

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can hide the parts of a finding you never read, like the evidence or the agent prompt

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:49 PM UTC · Completed 9:58 PM UTC

Commit: b34a13b · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.23

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 30, 2026
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Small single-file change in Jira ADF converter with no protected paths and full issue alignment, assigned moderate risk due to zero accompanying tests for a Go source path and recent regression fix history.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Looks good to me


Labels: Comment-only chore touching Go code.

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added ready-for-merge All reviewers approved — ready to merge type/chore Maintenance and housekeeping tasks go Pull requests that update go code labels Nov 30, 2026
@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Fixes fullsend-ai#9516

A comment or doc wording change; there are no acceptance tests.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
@tpouyer
tpouyer force-pushed the chore/9516-jira-adf-reword-comments-cite-sticky branch from b34a13b to 3f94c9f Compare December 3, 2026 21:07
@fullsend-ai-review

fullsend-ai-review Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:11 PM UTC · Completed 9:16 PM UTC

Commit: 3f94c9f · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.78

@fullsend-ai-review fullsend-ai-review Bot removed the ready-for-merge All reviewers approved — ready to merge label Dec 3, 2026
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Small single-file comment update in Jira ADF converter with no protected paths and full issue alignment, assigned moderate risk due to zero accompanying tests on a Go source path and recent regression fix history.

@fullsend-ai-review

fullsend-ai-review Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Looks good to me

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review December 3, 2026 21:16

Superseded by updated review

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Dec 3, 2026

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One finding, inline below. It is about the PR body and issue link, not the code change.

Comment thread internal/forge/jira/adf.go Resolved
@tpouyer tpouyer changed the title chore(#9516): describe the <details> layout, not its producer chore: describe the <details> layout, not its producer Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update go code ready-for-merge All reviewers approved — ready to merge risk/moderate PR risk: moderate type/chore Maintenance and housekeeping tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants