Add SyncOnCommit when adding push mirror via API calls #22267
Labels
modifies/api
This PR adds API routes or modifies them
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Feature Description
Currently there is no way to set it:
gitea/modules/structs/mirror.go
Lines 7 to 12 in a357498
Despite it should be true:
gitea/models/repo/pushmirror.go
Line 28 in a357498
For some reason it is not working in reality. The field is set to false if I made the push mirror option using OpenAPI. It works when I add it in web settings though. Pretty sure it is a missing API feature
Screenshots
No response
The text was updated successfully, but these errors were encountered: