Repository navigation
Name Intridea subsections with sections: - #83
Merged
Merged
Conversation
`Intridea` kept empty subsection headings in a release, so a fixes-only release had an empty `#### Features` heading, and it rebuilt the next section from the released headings. With `sections:`, a release drops subsections without notes and every Next section starts with all the configured sections. Without it, behavior is unchanged. The empty category removal is shared with `KeepAChangelog`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Gr21j6KD4oksnhmZ5u3pr
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
Stacked on #82.
Changelog::Intrideakeeps subsection headings that have no notes left once placeholders are removed, so a fixes-only release has an empty#### Featuresheading (ruby-grape/grape removed one by hand for 4.0.1, per the review of ruby-grape/grape#3078). The next development section is also built from the released section's headings, so simply dropping the empty heading would lose it from the next section too.sections:option, e.g.Intridea.new(placeholder: '* Your contribution here.', sections: %w[Features Fixes]).sections:,release!removes subsection headings without notes, andprepare_next!always starts the Next section with every configured section, including ones the previous release dropped.sections:, behavior is unchanged.remove_empty_categories,remove_line, and section validation move fromKeepAChangelogtoChangelog::Baseand are shared, so both formats drop empty categories the same way.Validation
bundle exec rake: RuboCop (including spellcheck) and all unit and integration specs pass.#### Featuresand restores both sections in the next section, with repeated release and preparation; unchanged behavior withoutsections:; invalid section lists and level-six headings are rejected.This PR was written by an AI (Claude) acting on behalf of @dblock.
🤖 Generated with Claude Code
https://claude.ai/code/session_011Gr21j6KD4oksnhmZ5u3pr