gitea/routers/api/v1/repo
zeripath 409ff55a29
When updating mirror repo intervals by API reschedule next update too ()
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>
..
blob.go Propagate context and ensure git commands run in request context ()
branch.go Move organization related structs into sub package ()
collaborators.go Renamed ctx.User to ctx.Doer. ()
commits.go Propagate context and ensure git commands run in request context ()
file.go Make git.OpenRepository accept Context ()
fork.go Make git.OpenRepository accept Context ()
git_hook.go Move macaron to chi ()
git_ref.go Multiple Escaping Improvements ()
hook.go Renamed ctx.User to ctx.Doer. ()
hook_test.go Decouple unit test, remove intermediate `unittestbridge` package ()
issue.go Move milestone to models/issues/ ()
issue_comment.go Never use /api/v1 from Gitea UI Pages ()
issue_label.go Renamed ctx.User to ctx.Doer. ()
issue_reaction.go Move reaction to models/issues/ ()
issue_stopwatch.go Use `ctx` instead of `db.DefaultContext` in some packages(routers/services/modules) ()
issue_subscription.go Renamed ctx.User to ctx.Doer. ()
issue_tracked_time.go Never use /api/v1 from Gitea UI Pages ()
key.go Use `ctx` instead of `db.DefaultContext` in some packages(routers/services/modules) ()
label.go Move init repository related functions to modules ()
language.go Move repository model into models/repo ()
main_test.go Use a struct as test options ()
migrate.go Document 409 error returned by repos/migrate api ()
milestone.go Move milestone to models/issues/ ()
mirror.go An attempt to sync a non-mirror repo must give 400 (Bad Request) ()
notes.go Make git.OpenRepository accept Context ()
patch.go Renamed ctx.User to ctx.Doer. ()
pull.go Move milestone to models/issues/ ()
pull_review.go Move milestone to models/issues/ ()
release.go Renamed ctx.User to ctx.Doer. ()
release_attachment.go Renamed ctx.User to ctx.Doer. ()
release_tags.go Renamed ctx.User to ctx.Doer. ()
repo.go When updating mirror repo intervals by API reschedule next update too ()
repo_test.go Renamed ctx.User to ctx.Doer. ()
star.go Renamed ctx.User to ctx.Doer. ()
status.go Renamed ctx.User to ctx.Doer. ()
subscriber.go Renamed ctx.User to ctx.Doer. ()
tag.go Renamed ctx.User to ctx.Doer. ()
teams.go Move organization related structs into sub package ()
topic.go Some repository refactors ()
transfer.go Move organization related structs into sub package ()
tree.go Propagate context and ensure git commands run in request context ()
wiki.go Make git.OpenRepository accept Context ()