tokuhirom / Minilla

Authorizing tool for CPAN modules
https://metacpan.org/release/Minilla
Other
97 stars 65 forks source link

Request: release commit message: diff Changes since the last tagged version instead of the last commit #273

Open cxw42 opened 5 years ago

cxw42 commented 5 years ago

Currently, the commit message for a minil release is git diff Changes:

https://github.com/tokuhirom/Minilla/blob/05255e6b6352151e7dde46de5e166b5f92709a8a/lib/Minilla/Release/Commit.pm#L19

Would it be possible to diff against the last tagged version, if it exists? E.g., git diff <last tag> -- Changes.

I am using CI more often to test my dists before releasing. I make all my changes, commit, push, and wait for the CI results before running minil release. Therefore, the only diff in the Changes file is {{$NEXT}} and the date.

If the diff were against the last tag, then the commit message would be the changelog of the release. Then, when I made a GitHub release with the tarball, it would fill in the changelog automatically. This would save a step and result in more complete commit messages.

What do you think? Thank you for considering this request!