mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-05 23:34:11 +02:00
Add ff_only parameter to POST /repos/{owner}/{repo}/merge-upstream (#34770)
The merge-upstream route was so far performing any kind of merge, even those that would create merge commits and thus make your branch diverge from upstream, requiring manual intervention via the git cli to undo the damage. With the new optional parameter ff_only, we can instruct gitea to error out, if a non-fast-forward merge would be performed.
This commit is contained in:
1 parent
7346ae7cd4
commit
b8c9a0c323
6 files changed
+45
-3
No files matched your search
@@ -136,6 +136,7 @@ type UpdateBranchProtectionPriories struct {
|
||||
|
||||
type MergeUpstreamRequest struct {
|
||||
Branch string `json:"branch"`
|
||||
FfOnly bool `json:"ff_only"`
|
||||
}
|
||||
|
||||
type MergeUpstreamResponse struct {
|
||||
|
||||
Reference in new issue
Block a user