Add sync_on_commit option for push mirrors api (#22271) (#22292)

Backport of #22271
This commit is contained in:
Chongyi Zheng authored and GitHub committed 2022-12-31 19:46:14 +08:00
1 parent 75f128ebf8
commit 443fd27a90
3 files changed
+15 -4

No files matched your search

+2
View File
@@ -10,6 +10,7 @@ type CreatePushMirrorOption struct {
RemoteUsername string `json:"remote_username"`
RemotePassword string `json:"remote_password"`
Interval string `json:"interval"`
SyncOnCommit bool `json:"sync_on_commit"`
}
// PushMirror represents information of a push mirror
@@ -22,4 +23,5 @@ type PushMirror struct {
LastUpdateUnix string `json:"last_update"`
LastError string `json:"last_error"`
Interval string `json:"interval"`
SyncOnCommit bool `json:"sync_on_commit"`
}