nedbat / scriv

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

pre-commit hook that fails if there's no changelog entry on the merge base against default branch #114

Closed gaborbernat closed 9 months ago

gaborbernat commented 9 months ago

👍

nedbat commented 9 months ago

TBH, I don't use pre-commit hooks, so I'm not sure what form this would even take. Do you have an example I could crib from?

gaborbernat commented 9 months ago

I do not, but perhaps @asottile might have something on hand 🤔

asottile commented 9 months ago

I don't think this really makes sense as a pre-commit hook -- you need the whole context of a branch and an upstream -- probably makes more sense as a pull request check