Skip to content

Add SyncOnCommit when adding push mirror via API calls #22267

Closed
@wizpresso-steve-cy-fan

Description

@wizpresso-steve-cy-fan

Feature Description

Currently there is no way to set it:

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:

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

No one assigned

    Labels

    modifies/apiThis PR adds API routes or modifies themtype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions