Connect a project to a GitHub repository
Connects the project to a repository in the organization's GitHub account, through the organization's Spice Cloud GitHub App installation. The next deployment reads spicepod.yaml (or spicepod.yml) from root_directory on production_branch. Connecting sets the project description to the repository description. Connecting again replaces the repository, root directory and production branch. Requires apps:write.
Request
- Base URLhttps://api.spice.ai
- AuthHTTP bearer
Path parameters
The ID of the project to connect
Headers
The organization to act on, by handle. Omit it to act on the organization the credential is bound to; sending it blank is a 400, not the same as omitting it. A user credential may name any organization its owner belongs to; a machine credential is pinned to its own. A portal session token is bound to none, so it must send this header on every route but GET /v1/orgs (400 org_assertion_required otherwise).
Request body
Example request
{
"repository": "cookbook",
"root_directory": "cayenne",
"production_branch": "trunk"
}Response
Project connected
Changes
No recorded changes to this operation across all 1 revision of this API.