Repository navigation
fix(release): a changelog fragment may not repeat an entry a release already ships (#938) - #961
Merged
Merged
Conversation
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
changelog.d/added/revit-property-sets.md(#934) repeated #887's RE-207 entry, which v0.7.0 already ships in itsAddedsection, so 0.8.0'sassemblewould have listed it twice. The repeated item is removed, andchangelog.py checknow fails on any fragment item a released section ofCHANGELOG.mdalready has.Motivation
#934's entry moved from
CHANGELOG.mdinto a fragment while #887 was still unreleased, and the fragment took #887's item with it. Nothing caught it:checkonly looked at a fragment's place and first line.Changes
changelog.d/added/revit-property-sets.md: only feat(ifc)!: rvt-ifc --revit-property-sets writes Revit's own property sets (#35) (RE-210) #934's own item (RE-210).tools/release/changelog.py:checkcompares each fragment item, whitespace collapsed, with every item below[Unreleased]and names the one already released.changelog.d/README.md: says so.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
python3 tools/release/changelog.py checkonmain's fragments: fails, namingrevit-property-sets.mdand the RE-207 item. With the item removed: passes, 10 fragments.assembledry run on a copy of the tree:[Unreleased]takes 10 fragments, andCHANGELOG.mdholds the RE-207 item once (in 0.7.0) and the property-sets item once.changelogstep.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Screenshots or output samples
Related issues
Refs #938, #934, #887