Skip to content

Improved handling of dependency updates#95

Merged
niklasga merged 4 commits intomainfrom
improved-handling-of-dependency-updates
Aug 12, 2025
Merged

Improved handling of dependency updates#95
niklasga merged 4 commits intomainfrom
improved-handling-of-dependency-updates

Conversation

@niklasga
Copy link
Contributor

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:

---
"reactivewizard-parent": dependency
---

- io.projectreactor:reactor-bom: 2024.0.0

Rendered into a changelog it would be aggregated with other dependency updates under a separate heading like this:

### Dependency Updates

- io.projectreactor:reactor-bom: 2024.0.0

Changesets can now have the type "dependency" and be grouped along with all other dependency updates in a separate list from any code changes.
@niklasga niklasga requested a review from magnusp as a code owner June 24, 2025 09:01
@niklasga niklasga requested a review from Copilot June 24, 2025 09:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds support for treating dependency‐type changesets separately in changelogs and updates formatting/tests/docs to preserve multi­line bullets and render a new “Dependency Updates” section.

  • Introduce a new DEPENDENCY level and update sorting, parsing, and rendering to group dependency changes.
  • Enhance MarkdownFormatter to preserve trailing spaces for multi­line 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 multi­line 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.

niklasga and others added 2 commits June 24, 2025 11:05
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@niklasga niklasga merged commit a9b12ad into main Aug 12, 2025
7 checks passed
@niklasga niklasga deleted the improved-handling-of-dependency-updates branch August 12, 2025 09:22
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.

2 participants