Conversation
Gudahtt
left a comment
There was a problem hiding this comment.
It would probably be safer to interactively prompt instead of always using --force, with the option to skip the prompt (defaulted to ON in a CI environment).
But in practice I'm having trouble thinking of a scenario where this would cause a real problem for a contributor, and I can't think of one. So I don't want to block this simpler solution.
That's pretty much the exact train of though that I had 😄 |
Quite often developers run into problems with the tag fetching step where the solution is to run
git fetch --tags --forceto overwrite local tags. This PR defaults to append--forceand overwrite local tags.Feedback welcome.
Note
Low Risk
Small change to the git invocation used during changelog updates; main risk is overwriting local tag refs in environments where that is unexpected.
Overview
getMostRecentTagnow runsgit fetch --tags --forceinstead ofgit fetch --tags, ensuring local tags are overwritten before determining the most recent release tag for changelog generation.Written by Cursor Bugbot for commit 1adb67e. This will update automatically on new commits. Configure here.