go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.68k stars 5.46k forks source link

Way to set mirror interval via API? #11605

Open rcarmo opened 4 years ago

rcarmo commented 4 years ago

Description

There seems to be no way to set the mirror interval using the API. I can see mirror: true when I GET /repos/{owner}/{repo}, and I see the Web UI POSTing to /user/repo/settings, but there is no corresponding API call... ...

6543 commented 4 years ago

we can either add it as option to repo endpoints or make a new endpoint for mirrors only