Create the Gitea repository, with AGPL license when GitHub is chosen #11

Open
opened 2026-10-05 07:48:13 +02:00 by Tirsvad · 0 comments
Owner

POST /user/repos or POST /orgs/{org}/repos on the Gitea API base, with no template, readme or gitignore. When GitHub is chosen, send license AGPL-3.0 (listed by GET /licenses; check it exists first) with auto_init true so the license file is committed and the repository is not empty; otherwise auto_init false and the repository stays empty. Derive the clone URL from GITEA_URL and the selected owner.

Phase: MIL-002
Reference: [UC-001]

`POST /user/repos` or `POST /orgs/{org}/repos` on the Gitea API base, with no template, readme or gitignore. When GitHub is chosen, send `license` `AGPL-3.0` (listed by `GET /licenses`; check it exists first) with `auto_init` true so the license file is committed and the repository is not empty; otherwise `auto_init` false and the repository stays empty. Derive the clone URL from `GITEA_URL` and the selected owner. Phase: MIL-002 Reference: [UC-001]
Tirsvad added this to the MIL-002 Repositories and Mirror milestone 2026-10-05 07:48:13 +02:00
Sign in to join this conversation.