feat: By default scm github/gitlab/stash/gitea uses force push #2026
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I started using 0.75.0-rc.1 and I am really annoyed that I now have to go over all my manifest for a behavior that I feel should be the default.
I would expected for any pipeline relying on a working branch created by Updatecli to be automatically recreated when the based branch is modified.
I already put in place a safeguard for the scm git plugin, because by default it doesn't create a working branch so if only force is set to true there is a risk to accidentally force push changes.
so the following pipeline would trigger an error
will trigger an error asking to set
workingbranch
to either true or false to show that the user understand the behaviorThis pull request set
force
totrue
for the scm plugins GitLab, Gitea, GitHub, Stash and provide additional safe guards for unclear configuration.Unclear manifest
Console output
Test
To test this pull request, you can run the following commands:
Additional Information
Tradeoff
Different
force
behavior depending on the scm plugin. I guess the day we align the git plugin with the other ones, we'll be able to also align the force settingPotential improvement