Write the first commit on an empty repository's default branch.
For a GitHub repository with no commits: Koidog writes one commit (empty, or holding the files you give) on the default branch and pushes it, so crews can branch from it.
POST/api/v1/projects/{id}/seed
Scopeapprove
Koidog never writes to a default branch on its own; this is that request, recorded with who made it. A project with no remote repository is seeded by Koidog when it is created; calling this for one answers its seed. The launch blocker repo_empty names this action. The timeline records the key ID, action and outcome.
Path parameters.
idstringrequired
The project's id.
Headers.
Idempotency-Keystring
Retry the same request with the same key. Retry rules.
Body.
An omitted body is read as {}.
filesarray
Files the first commit holds, written exactly as given. Empty (the default): an empty commit with no files. At most 10 files of 64 KB each; no path under .github/ (a workflow would run with the repository's secrets). At most 10 items. Default empty.
ShowHide 2 fields
pathstringrequired
Where the file goes, relative to the repository's root, such as README.md or koidog.json. 1 to 200 characters.
contentstringrequired
The file's text, written exactly as given. At most 65536 characters.
messagestring
The commit message. Default: "Start <project name>". 1 to 200 characters.
Response.
200 OK · JSON object
- 409 already_seeded
- Refused with
409 already_seededwhen the branch has a commit. - 422 validation_failed
- Each schema error appears in
details.