Skip to content

Accept Intridea notes without a contribution placeholder - #91

Merged
dblock merged 1 commit into
dblock/changelog-release-notesfrom
dblock/optional-changelog-placeholder
Nov 21, 2026
Merged

dblock merged 1 commit into
dblock/changelog-release-notesfrom
dblock/optional-changelog-placeholder

Conversation

@dblock

@dblock dblock commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #90.

Summary

Addresses the "preserve a required placeholder in the Next changelog section" item from the review of ruby-grape/grape-swagger#1017. Changelog::Intridea rejected a Next section without the exact placeholder line, even when it contained real notes, so contributors who replaced the placeholder broke release validation.

  • The placeholder is now optional in a Next section with release notes. It is still removed when present, and prepare_next! still restores it, so the next version starts with it as before.
  • A placeholder-only or structural-only section still fails as empty.
  • A line with the placeholder's text under a different list marker (for example * Your contribution here. when - Your contribution here. is configured) now fails with a clear message, so a misconfigured placeholder is not published as a release note. That was the useful part of the old check.
  • Changelog::KeepAChangelog already treated its placeholder as optional; no change there.

Validation

  • PARALLEL_TEST_PROCESSORS=4 bundle exec rake (464 examples, 0 failures; RuboCop no offenses).
  • Specs replace the two "missing placeholder" rejections with acceptance during validation and release, placeholder restoration in the next section, and rejection of a differently marked placeholder in both phases without writing. intridea.rb is fully covered.

Authored by an AI (Claude) acting on behalf of @dblock.

🤖 Generated with Claude Code

https://claude.ai/code/session_011Gr21hZDQo5axDMuFgzL6s

A Next section with real notes no longer fails because its placeholder
line was replaced. The placeholder is still removed when present and
restored for the next version. A line with the placeholder's text under
a different list marker still fails, so a misconfigured placeholder is
not published as a release note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Gr21hZDQo5axDMuFgzL6s
@dblock
dblock force-pushed the dblock/optional-changelog-placeholder branch from ecab964 to 61c2875 Compare November 21, 2026 04:23
@dblock
dblock changed the base branch from master to dblock/changelog-release-notes November 21, 2026 04:24
@dblock
dblock added this pull request to stack #94 November 21, 2026 04:24
@dblock
dblock merged commit 21d0470 into master Nov 21, 2026
13 checks passed
@dblock
dblock deleted the dblock/optional-changelog-placeholder branch November 21, 2026 04:56
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