Start a project at Praecise Cloud that is released from a GitHub branch
post/hosting/coder/projects/import/github
Start a project at Praecise Cloud that is released from a GitHub branch: a push to the branch releases it, other branches and pull requests make previews. Once its first build is done, bring it into Rivier by its Praecise Cloud name; Rivier then gives its changes as a patch for the branch.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:write- Sdk
hosting.coderProject.importGithub- Cli
hosting coder project import github
Request bodyapplication/json, required
- repoIdintegerrequiredThe repository's number, as the list of connected repositories gives it
- branchstringThe branch that is released; the repository's default branch when left out At most 200 characters.
- directorystringThe folder of the project inside the repository; its root when left out At most 200 characters.
- cloudstringrequiredThe name the project gets at Praecise Cloud Pattern: ^[a-z0-9][a-z0-9-]{0,62}$.
Responses
- 201application/jsonSuccess
- cloudobjectrequired
- namestringrequired
- urlstringrequired
- stackstringrequired
- jobobject or nullrequired
- deployRefusedstring or nullrequiredWhy the first deploy did not start, in Praecise Cloud's words
- cloudobjectrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring