]> source.dussan.org Git - gitea.git/commit
When updating mirror repo intervals by API reschedule next update too (#19429) (...
authorzeripath <art27@cantab.net>
Wed, 20 Apr 2022 14:04:26 +0000 (15:04 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Apr 2022 14:04:26 +0000 (16:04 +0200)
commit08eecba32bec00b12d6a02988c42adc898a8ff65
tree15a8ff953d5b8b65dd288d9a55a0ff823c02d563
parent9c2212df15f61c8d7929f4c24ff1beedfff6f728
When updating mirror repo intervals by API reschedule next update too (#19429) (#19433)

Backport #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>
modules/structs/repo.go
routers/api/v1/repo/repo.go
routers/web/repo/setting.go
templates/swagger/v1_json.tmpl