invertase / melos

๐ŸŒ‹ A tool for managing Dart projects with multiple packages. With IntelliJ and Vscode IDE support. Supports automated versioning, changelogs & publishing via Conventional Commits.
https://melos.invertase.dev/~melos-latest
Apache License 2.0
1.11k stars 198 forks source link

feat: add option that allows to include commit bodies in changelog #606

Closed lesnitsky closed 9 months ago

lesnitsky commented 9 months ago

Description

This PR introduces a new version command option:

command:
  version:
    includeCommitBody: true # default is false

This might be useful for PRs with breaking changes (migration guides could be added to changelog from commit boides)

Type of Change

lesnitsky commented 9 months ago

Example changelog produced with includeCommitBody: true

firebase_ui_storage - v2.0.0

firebase_ui_auth - v1.11.0

spydon commented 9 months ago

Just a heads up that with this activated one is unfortunately going to run into the max changelog size very quickly on pub.dev so might be worth mentioning that in the docs, otherwise I think that it looks good!

Would be nice if it would be configurable to only take the commit body on breaking changes, but that's probably outside of the scope for this PR of course.

lesnitsky commented 9 months ago

one is unfortunately going to run into the max changelog size very quickly on pub.dev

I didn't know there is such a limit ๐Ÿ˜ฎ Do you know what the max size currently?

lesnitsky commented 9 months ago

Would be nice if it would be configurable to only take the commit body on breaking changes

Done

spydon commented 9 months ago

I didn't know there is such a limit ๐Ÿ˜ฎ Do you know what the max size currently?

256KB - https://github.com/dart-lang/pub-dev/issues/6012

Done

Amazing! That will be super helpful for Flame.

Salakar commented 9 months ago

Let's follow up with a docs PR, @lesnitsky lmk if you want me to do it.

This is published in 3.3.0