-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
modifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies themtype/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.
Description
Feature Description
Currently there is no way to set it:
gitea/modules/structs/mirror.go
Lines 7 to 12 in a357498
type CreatePushMirrorOption struct { | |
RemoteAddress string `json:"remote_address"` | |
RemoteUsername string `json:"remote_username"` | |
RemotePassword string `json:"remote_password"` | |
Interval string `json:"interval"` | |
} |
Despite it should be true:
gitea/models/repo/pushmirror.go
Line 28 in a357498
SyncOnCommit bool `xorm:"NOT NULL DEFAULT true"` |
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
Metadata
Metadata
Assignees
Labels
modifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies themtype/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.