Repository navigation
Say Which HEREDOC Branch Drops a Digit Label - #3440
Conversation
A reviewer twice read the unclosed-body fallback as the else branch of the second-opener conditional and concluded a terminated digit-labelled heredoc never matches. The comment above the rule now says the last branch, the one for a body that never closes, is the one that drops it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
There was a problem hiding this comment.
🟢 Approval recommended
The change is documentation-only; the sole comment-length nit is minor and does not block approval.
No open issues 🎉
What changed in this PR
This pull request clarifies which HEREDOC regex branch rejects an unclosed digit-labelled heredoc, without changing parser behavior, tests, or gate size.
Changes:
- Reworded the explanatory
HEREDOCcomment. - Preserved the existing regex and test behavior.
- Identified the final unclosed-body branch that drops digit labels.
| File | Description |
|---|---|
.github/actions/prose-gate/prose_lint.py |
Clarifies the branch behavior documented above the HEREDOC pattern. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3440 +/- ##
========================================
Coverage 80.76% 80.76%
========================================
Files 23 23
Lines 8839 8839
========================================
Hits 7139 7139
Misses 1700 1700
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
On the review headline's comment-length nit, which names no line: the one changed comment line is 98 characters against the repository's 100-column ruff limit, and |
…ktick Fixes to Main (#3438) ## Summary Promotes the pull requests merged into develop since release 2.0.1163. - [#3437](#3437): the prose gate reads a heredoc label opening on a digit where its terminator line follows, queues a second heredoc on one opener line, skips the run-block heredoc split for a step whose `shell:` is neither bash nor sh, and numbers inline Markdown comments with escapes, HTML comments, and tags taking their backticks as CommonMark reads them, using markdown-it-py's own tag grammar. The gate's size ceiling moves from 1840 to 1862 lines, as the maintainer decided this round. - [#3439](#3439): fixes the two findings this promotion's review raised. Each of two heredoc bodies on one opener line is lexed alone, and a URI autolink keeps its backticks out of the code-span mask, using markdown-it-py's own autolink character classes. Three walrus rewrites hold the gate at the 1862-line ceiling. - [#3440](#3440): rewords the comment above `HEREDOC` to say the last, unclosed branch is the one that drops a digit label, after this promotion's review read that branch as the second-opener conditional's else branch a second time. Closes #3428 Closes #3429 Closes #3430 Closes #3435 ## Constituent coverage Each change this promotion carries had coverage on its own pull request into develop, at its merged head: | Pull request | Merged head | Coverage | | --- | --- | --- | | [#3437](#3437) | `2e271e22` | attested local pass, and a Copilot table naming exactly the changed files, `coverage=table` | | [#3440](#3440) | `7bbd7780` | attested local pass, and a Copilot table naming exactly the changed file, `coverage=table` | | [#3439](#3439) | `a53ee15a` | attested local pass, and a Copilot table naming exactly the changed files, `coverage=table` | 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Rewords the comment above the prose gate's
HEREDOCrule to say which branch drops a heredoc label opening on a digit: the last one, for a body that never closes.The hosted reviewer twice read that final
(?(3).*|(?!))as the else branch of the second-opener conditional(?(7)...)and concluded that a terminated<<123never matches, on #3437 and on the promotion #3438. It is the outer group's second alternative, the regex does match a terminated digit label, andtest_a_delimiter_opening_on_a_digit_ends_on_its_terminatorpasses. Since the same misreading came back against correct code, the comment now states the structure rather than leaving it to be re-derived. No code changes, and the gate stays at 1862 lines.This change edits a comment line, so it carries the
commentslabel.🤖 Generated with Claude Code