diff options
author | zeripath <art27@cantab.net> | 2022-04-20 09:20:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 09:20:53 +0100 |
commit | 409ff55a293487868cfe034151d84de4cf4b4235 (patch) | |
tree | 174d3fca8b0fa33af7b57e7c3e518788cfe77ce0 /templates/swagger | |
parent | a56fcdfa8f19efcc53c2163d60c9c1e1bafbc019 (diff) | |
download | gitea-409ff55a293487868cfe034151d84de4cf4b4235.tar.gz gitea-409ff55a293487868cfe034151d84de4cf4b4235.zip |
When updating mirror repo intervals by API reschedule next update too (#19429)
When a mirror repo interval is updated by the UI it is rescheduled with that interval
however the API does not do this. The API also lacks the enable_prune option.
This PR adds this functionality in to the API Edit Repo endpoint.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates/swagger')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index e35ba98909..de74fd8fa3 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -15084,6 +15084,11 @@ "type": "string", "x-go-name": "Description" }, + "enable_prune": { + "description": "enable prune - remove obsolete remote-tracking references", + "type": "boolean", + "x-go-name": "EnablePrune" + }, "external_tracker": { "$ref": "#/definitions/ExternalTracker" }, |