🐛 fix(ci): strip ordering markers from changelog section headers#427
Open
sodre wants to merge 1 commit into
Open
🐛 fix(ci): strip ordering markers from changelog section headers#427sodre wants to merge 1 commit into
sodre wants to merge 1 commit into
Conversation
git-cliff group names embed `<!-- N -->` prefixes to control section sort order, but the body template rendered the raw group name, leaking e.g. `### <!-- 4 -->Refactoring` into the changelog and GitHub Release notes (seen in v0.10.2). Add the canonical `striptags | trim` filters to the group header so only the label renders. Display-only — section ordering is unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #427 +/- ##
===========================================
- Coverage 92.39% 29.14% -63.26%
===========================================
Files 37 37
Lines 7854 7854
===========================================
- Hits 7257 2289 -4968
- Misses 597 5565 +4968
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cliff.tomlembed<!-- N -->ordering markers (e.g.<!-- 4 -->Refactoring) to control section order. The changelog body template rendered the raw group name, leaking the marker into rendered headers — visible as### <!-- 4 -->Refactoringin the v0.10.2 changelog and GitHub Release notes.striptags | trimfilters to the group header in the body template (### {{ group | striptags | trim | upper_first }}). This is display-only; section ordering is unchanged.Test plan
uvx git-cliff --config cliff.toml— all 12 section headers (Features, Bug Fixes, Refactoring, etc.) render cleanly with zero### <!--leaks### Refactoring🤖 Generated with Claude Code