Skip to content

Say Which HEREDOC Branch Drops a Digit Label - #3440

Merged
ptr727 merged 1 commit into
developfrom
feature/prose-gate-heredoc-comment
Oct 25, 2026
Merged

ptr727 merged 1 commit into
developfrom
feature/prose-gate-heredoc-comment

Conversation

@ptr727

@ptr727 ptr727 commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Rewords the comment above the prose gate's HEREDOC rule 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 <<123 never matches, on #3437 and on the promotion #3438. It is the outer group's second alternative, the regex does match a terminated digit label, and test_a_delimiter_opening_on_a_digit_ends_on_its_terminator passes. 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 comments label.

🤖 Generated with Claude Code

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]>
Copilot AI lite review requested due to automatic review settings October 24, 2026 23:48
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Oct 24, 2026
@ptr727

ptr727 commented Oct 24, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 7bbd77801aac053e2a4843d5be87a4803e0cf85b, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

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 HEREDOC comment.
  • 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

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.76%. Comparing base (9f759a3) to head (7bbd778).

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           
Flag Coverage Δ
python-3.13 80.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

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 ruff check and the prose gate both pass on it, so it is declined.

@ptr727
ptr727 merged commit 687ccd9 into develop Oct 25, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/prose-gate-heredoc-comment branch October 25, 2026 00:00
ptr727 added a commit that referenced this pull request Oct 25, 2026
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants