Skip to content

fix(changelog): Ignore #skip-changelog inside Markdown code - #952

Merged
BYK merged 2 commits into
masterfrom
fix/skip-changelog-code-spans
Nov 2, 2026
Merged

BYK merged 2 commits into
masterfrom
fix/skip-changelog-code-spans

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

The skip magic word was matched as a plain substring anywhere in a commit message or PR body. #950's squash commit described the post-release bump commit in backticks, so the feature dropped itself: craft prepare auto found zero commits since 3.6.0 and the 3.7.0 release failed with "no commits found since the last release".

Now mentions inside Markdown inline code spans (including ones hard-wrapped across lines, as in squash commits) and fenced code blocks are ignored. The word still works anywhere in plain prose, so the documented "anywhere in your commit message or PR body" behavior holds, and Craft's own meta: Bump new development version commits are still skipped. Both checks (the early git commit-body filter and shouldExcludePR for PR bodies) share the new helper.

Once this merges, the next auto release will count #950 again (verified against its actual commit message), so a plain re-run should get 3.7.0 out with #950 in the changelog.

via @BYK.

--

View Session in Sentry

A commit or PR body that only quotes the magic word in a code span or
fenced block no longer drops the change from the changelog and
auto-versioning. The squash commit for #950 documented the bump
commit's message in backticks, which skipped it and left the 3.7.0
release with no commits to version.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-11-02 11:26 UTC

Comment thread src/utils/changelog.ts Resolved
Replace the hand-rolled code fence and code span stripping with
marked's lexer, which the changelog code already uses. Only prose and
HTML tokens are checked, so code anywhere (including in lists and
tables) is ignored while hidden HTML comments still count.
@BYK
BYK merged commit 15ea010 into master Nov 2, 2026
22 checks passed
@BYK
BYK deleted the fix/skip-changelog-code-spans branch November 2, 2026 11:26

This branch was previously deployed

1 inactive deployment
false — ceccf6b6 Deployed Nov 2, 2026 by sentry-junior[bot] via Build #3278
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.

1 participant