Merged
Conversation
Changesets can now have the type "dependency" and be grouped along with all other dependency updates in a separate list from any code changes.
Contributor
There was a problem hiding this comment.
Pull Request Overview
Adds support for treating dependency‐type changesets separately in changelogs and updates formatting/tests/docs to preserve multiline bullets and render a new “Dependency Updates” section.
- Introduce a new
DEPENDENCYlevel and update sorting, parsing, and rendering to group dependency changes. - Enhance
MarkdownFormatterto preserve trailing spaces for multiline bullets. - Update tests and documentation to expect and demonstrate the separate dependency section.
Reviewed Changes
Copilot reviewed 84 out of 85 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/java/se/fortnox/changesets/Level.java | Added DEPENDENCY enum and adjusted presentation strings. |
| src/main/java/se/fortnox/changesets/DependencyUpdatesParser.java | New parser for extracting unique dependency items. |
| src/main/java/se/fortnox/changesets/ChangesetParser.java | Map “dependency” to Level.DEPENDENCY in the switch. |
| src/main/java/se/fortnox/changesets/ChangelogAggregator.java | Inject and use DependencyUpdatesParser, adjust merge API. |
| src/main/java/se/fortnox/changesets/MarkdownFormatter.java | Adjust format flags to preserve trailing spaces in bullets. |
| src/test/java/se/fortnox/changesets/MarkdownFormatterTest.java | Added test for preserving multiline bullet items. |
| src/test/java/se/fortnox/changesets/DependencyUpdatesParserTest.java | Tests for parsing unique dependency lines. |
| src/test/java/se/fortnox/changesets/CompareTest.java | Updated to expect new merge signature and dependency section. |
| src/test/java/se/fortnox/changesets/ChangelogAggregatorTest.java | New test shouldAggregateDependencyUpdates. |
| README.md | Document the new “dependency” changeset type and section. |
| .changeset/legal-parents-scream.md | Root changeset describing the new dependency feature. |
changesets-java/src/main/java/se/fortnox/changesets/DependencyUpdatesParser.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This was referenced Jun 24, 2025
magnusp
approved these changes
Jun 25, 2025
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.
Changesets can now have the type "dependency" and be grouped along with all other dependency updates in a separate list from any code changes.
A changeset with dependencies would then look like this:
Rendered into a changelog it would be aggregated with other dependency updates under a separate heading like this: