Skip to content

fix(comment): add blank line before errors heading - #1125

Open
lowlydba wants to merge 1 commit into
github-community-projects:main-enterprisefrom
lowlydba:lowlydba/comment-heading-blank-lines
Open

lowlydba wants to merge 1 commit into
github-community-projects:main-enterprisefrom
lowlydba:lowlydba/comment-heading-blank-lines

Conversation

@lowlydba

@lowlydba lowlydba commented Nov 2, 2026 •

Copy link
Copy Markdown

Closes #1124

The comment template emitted </details> directly followed by ### Breakdown of errors. GitHub's Markdown parser keeps a heading that abuts an HTML block inside that block, so the heading showed as literal text. Eta trims the newline after <%~ it.checkRunDetails %>, and checkRunDetails has no trailing newline of its own, so the template now adds a blank line after it.

Rendered output before and after:

before: </details>\n### Breakdown of errors
after:  </details>\n\n### Breakdown of errors

A unit test renders the template and asserts the blank line.

Closes github-community-projects#1124

Signed-off-by: lowlydba <lowlydba@users.noreply.github.com>

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>
@lowlydba
lowlydba marked this pull request as ready for review November 2, 2026 16:08
Copilot AI balanced review requested due to automatic review settings November 2, 2026 16:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues for the comment-template spacing change.

No open issues 🎉

What changed in this PR

This PR fixes Markdown formatting in generated comments by adding a blank line between the changes details block and the errors heading.

Changes:

  • Adjusts the comment template’s spacing before “Breakdown of errors.”
  • Adds a regression test that checks the rendered separator.
File Description
test/​unit/​lib/​commentmessage.test.js Verifies a blank line separates the details block from the errors heading.
lib/​commentmessage.js Adds the blank line to the comment template.

Review effort: Balanced

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PR comment heading after changes block renders as plain text

2 participants