Skip to content

fix: match green-button (#N) only on the summary line - #42

Merged
rvagg merged 1 commit into
nodejs:mainfrom
trivikr:match-green-button-only-summary-line
Nov 28, 2026
Merged

rvagg merged 1 commit into
nodejs:mainfrom
trivikr:match-green-button-only-summary-line

Conversation

@trivikr

@trivikr trivikr commented Nov 20, 2026

Copy link
Copy Markdown
Member

A commit message line ending in (#N) set prUrl/ghIssue no matter where it appeared. Body lines such as see also (#12), or squash-merge entries like * fix: foo (#7), overwrote the PR number taken from the summary and were dropped from description.

For example, with this message the result was ghIssue: 7 and description: ['Body line']:

    feat: thing (#41)

    Body line
    see also (#12)
    * fix: squashed (#7)

The (#N) match, added for green-button merges in 9e87160, now applies only to the summary line. Other lines go to description as usual. PR-URL: trailers are unchanged.

Adds a test for each triggering body line. Both fail without the fix.

A body line ending in "(#N)", such as "see also (nodejs#12)" or a squash-merge
entry "* fix: foo (nodejs#7)", overwrote prUrl/ghIssue and was dropped from
description.
@rvagg
rvagg merged commit d011e37 into nodejs:main Nov 28, 2026
7 checks passed
github-actions Bot pushed a commit that referenced this pull request Nov 28, 2026
## [3.0.5](v3.0.4...v3.0.5) (2026-11-28)

### Bug Fixes

* match green-button (#N) only on the summary line ([#42](#42)) ([d011e37](d011e37)), closes [#N](https://github.com/nodejs/commit-stream/issues/N) [#N](https://github.com/nodejs/commit-stream/issues/N) [#12](#12) [#7](#7)
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 3.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants