Skip to content

Name Intridea subsections with sections: - #83

Merged
dblock merged 1 commit into
dblock/lazy-data-directoriesfrom
dblock/intridea-sections
Nov 20, 2026
Merged

dblock merged 1 commit into
dblock/lazy-data-directoriesfrom
dblock/intridea-sections

Conversation

@dblock

@dblock dblock commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Summary

Stacked on #82.

Changelog::Intridea keeps subsection headings that have no notes left once placeholders are removed, so a fixes-only release has an empty #### Features heading (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.

  • New sections: option, e.g. Intridea.new(placeholder: '* Your contribution here.', sections: %w[Features Fixes]).
  • With sections:, release! removes subsection headings without notes, and prepare_next! always starts the Next section with every configured section, including ones the previous release dropped.
  • Without sections:, behavior is unchanged.
  • remove_empty_categories, remove_line, and section validation move from KeepAChangelog to Changelog::Base and 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.
  • New specs: a fixes-only release with configured sections drops #### Features and restores both sections in the next section, with repeated release and preparation; unchanged behavior without sections:; 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

`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
@dblock
dblock added this pull request to stack #84 November 20, 2026 22:16
@dblock
dblock merged commit 211c000 into master Nov 20, 2026
11 checks passed
@dblock
dblock deleted the dblock/intridea-sections branch November 20, 2026 22:55
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