-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Comments
lunny
pushed a commit
that referenced
this issue
Dec 30, 2022
Push mirrors `sync_on_commit` option was added to the web interface in v1.18.0. However, it's not added to the API. This PR updates the API endpoint. Fixes #22267 Also, I think this should be backported to 1.18
harryzcy
added a commit
to harryzcy/gitea
that referenced
this issue
Dec 31, 2022
Push mirrors `sync_on_commit` option was added to the web interface in v1.18.0. However, it's not added to the API. This PR updates the API endpoint. Fixes go-gitea#22267 Also, I think this should be backported to 1.18
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: