Skip to content

fix: Force fetch tags#273

Merged
FrederikBolding merged 1 commit intomainfrom
fb/force-fetch-tags
Feb 12, 2026
Merged

fix: Force fetch tags#273
FrederikBolding merged 1 commit intomainfrom
fb/force-fetch-tags

Conversation

@FrederikBolding
Copy link
Copy Markdown
Member

@FrederikBolding FrederikBolding commented Feb 11, 2026

Quite often developers run into problems with the tag fetching step where the solution is to run git fetch --tags --force to overwrite local tags. This PR defaults to append --force and 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
getMostRecentTag now runs git fetch --tags --force instead of git 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.

@FrederikBolding FrederikBolding requested a review from a team as a code owner February 11, 2026 15:27
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@FrederikBolding
Copy link
Copy Markdown
Member Author

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 😄

@FrederikBolding FrederikBolding merged commit e03831d into main Feb 12, 2026
26 checks passed
@FrederikBolding FrederikBolding deleted the fb/force-fetch-tags branch February 12, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants