nedbat / scriv

Changelog management tool
https://scriv.readthedocs.io
Apache License 2.0
260 stars 29 forks source link

Have `scriv create` pull from known sources of words #13

Open cpennington opened 4 years ago

cpennington commented 4 years ago

scriv create could pull from git commit messages (easy-ish) and Github PR descriptions (harder) to pre-populate the changelog fragment. If those commits/PRs are tagged correctly, scriv could add the existing words to the pre-populated sections of the fragment.

nedbat commented 4 years ago

https://www.conventionalcommits.org/en/v1.0.0/ is a popular spec for how to structure commit messages.

nedbat commented 2 years ago

This command finds the full commit messages from all of the recent commits since the last one that added a fragment:

git log --format='%B' $(git log -1 --format=%H --diff-filter=A -- changelog.d)..
medecau commented 1 year ago

Hey @nedbat I took that command you shared and put it in a script. Then went a bit too far and made the whole thing generate CHANGELOG files.

Anyway here is the gist for that: https://gist.github.com/medecau/da827533390abcc32c91f11c4d5bb34d

Maybe some of that can be brought into scriv?