Skip to content

fix(stack): escape the HTML-comment delimiters in the revision marker - #1791

Merged
mergify[bot] merged 1 commit into
mainfrom
devs/JulianMaurin/fix/revision-marker-html-comment-escape/escape-html-comment-delimiters-revision-marker--1eb8bd9c
Aug 27, 2026
Merged

fix(stack): escape the HTML-comment delimiters in the revision marker#1791
mergify[bot] merged 1 commit into
mainfrom
devs/JulianMaurin/fix/revision-marker-html-comment-escape/escape-html-comment-delimiters-revision-marker--1eb8bd9c

Conversation

@JulianMaurin

Copy link
Copy Markdown
Contributor

The revision-data marker rides inside <!-- … -->, and a renderer
closes an HTML comment at the first -->. A revision reason quoting
one ended the marker early and spilled the remaining JSON into the
pull request comment as visible text.

The serialised payload now carries --\u003e and \u003c!--
in place of --> and <!--. Both decode to the same string, so the
read path round-trips them and markers written before the escape
still parse.

Co-Authored-By: Claude Opus 5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01Dvc1azYyfKXLf43Qkusm1r

The revision-data marker rides inside `<!-- … -->`, and a renderer
closes an HTML comment at the first `-->`. A revision reason quoting
one ended the marker early and spilled the remaining JSON into the
pull request comment as visible text.

The serialised payload now carries `--\u003e` and `\u003c!--`
in place of `-->` and `<!--`. Both decode to the same string, so the
read path round-trips them and markers written before the escape
still parse.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dvc1azYyfKXLf43Qkusm1r
Change-Id: I1eb8bd9c7a32cb8aba6e2fbe0482d3eb3d6ebb22
Copilot AI lite review requested due to automatic review settings August 27, 2026 08:26
@mergify
mergify Bot deployed to Mergify Merge Protections August 27, 2026 08:26 Active
@JulianMaurin
JulianMaurin deployed to func-tests-live August 27, 2026 08:26 — with GitHub Actions Active
@mergify

mergify Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 All 6 merge protections satisfied — ready to merge.

Show 6 satisfied protections

🟢 🤖 Continuous Integration

  • all of:
    • check-success=ci-gate

🟢 👀 Review Requirements

  • any of:
    • #approved-reviews-by>=2
    • author = dependabot[bot]
    • author = mergify-ci-bot
    • author = renovate[bot]

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|internal|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?!?:

🟢 🔎 Reviews

  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

  • body ~= (?ms:.{48,})

🟢 🚦 Auto-queue

When all merge protections are satisfied, this pull request will be queued automatically.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR hardens the mergify stack revision-history “machine marker” (<!-- mergify-revision-data: … -->) so that user-provided revision reasons cannot prematurely terminate the surrounding HTML comment and leak the remainder of the JSON payload into the rendered GitHub PR comment.

Changes:

  • Adds a serialization post-pass that rewrites embedded --> / <!-- sequences inside the marker JSON into JSON-unicode escapes (--\u003e, \u003c!--) while preserving round-trip decoding.
  • Applies the escaping when generating the marker line.
  • Adds a regression test covering a reason that contains an embedded HTML comment delimiter.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@JulianMaurin
JulianMaurin marked this pull request as ready for review August 27, 2026 08:30
@mergify
mergify Bot requested a review from a team August 27, 2026 08:32
@mergify
mergify Bot requested a review from a team August 27, 2026 10:47
@mergify mergify Bot added the queued label Aug 27, 2026
@mergify

mergify Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • Entered queue2026-08-27 10:49 UTC · Rule: default · triggered by merge protections
  • Checks skipped · PR is already up-to-date
  • Merged2026-08-27 10:50 UTC · at 221936958abadbe494a8c70bd0ceaf3e597d3d51 · squash

This pull request spent 1 minute 6 seconds in the queue, including 10 seconds running CI.

Required conditions to merge

@mergify
mergify Bot merged commit 727ce50 into main Aug 27, 2026
23 checks passed
@mergify
mergify Bot deleted the devs/JulianMaurin/fix/revision-marker-html-comment-escape/escape-html-comment-delimiters-revision-marker--1eb8bd9c branch August 27, 2026 10:50
@mergify mergify Bot removed the queued label Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants