Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have scriv create pull from known sources of words #13

Open
cpennington opened this issue Oct 2, 2020 · 3 comments
Open

Have scriv create pull from known sources of words #13

cpennington opened this issue Oct 2, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@cpennington
Copy link

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 nedbat added the enhancement New feature or request label Oct 2, 2020
@nedbat
Copy link
Owner

nedbat commented Oct 6, 2020

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

@nedbat
Copy link
Owner

nedbat commented Mar 23, 2022

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
Copy link

medecau commented Jan 6, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants