system-config/playbooks/roles/gitea-git-repos
Clark Boylan 9b5e5d3c57 Deal with gitea pagination of repo lists
We list gitea repos to determine if we need to create a repo. If the
repo isn't listed by gitea we create it. New gitea paginates these
listings so we were only getting 30 repos listed when we had far more.
This resulted in us trying to create repos which already exist which is
a gitea http 409 error.

Fix this by paging through the listings until we've seen all the
repos. This should give us a complete listing.

To test this we run our manage-projects playbook twice in the
system-config-run-gitea job. The first pass creates all the new
projects. Then the second pass should noop cleanly.

Change-Id: I73b77b9ddaa0106d4dc0a49c4d4b7751a39a16f9
Co-Authored-By: Jeremy Stanley <fungi@yuggoth.org>
2020-06-25 13:51:27 -07:00
..
defaults Add utility playbook for fixing gitea project settings 2019-03-04 16:06:49 +00:00
library Deal with gitea pagination of repo lists 2020-06-25 13:51:27 -07:00
tasks Use project-config from zuul instead of direct clones 2020-04-15 12:29:33 -05:00
README.rst Create git repos on gitea servers before gerrit 2019-03-01 18:07:33 +00:00

Create git repos on a gitea server