GET /v1/github/installations/{installation_id}/repositories/{repository_id}/manifest
The b3os.yaml at the head of a branch, read and checked as a deploy reads it: whether it is there, the application name it declares and its errors. Nothing is stored. Use it before linking the repository, so the link names the application the file declares (a push of a file that names another application fails).

Authentication

Bearer Token (b3os_sk_ API key or b3os_pat_ token)

Path Parameters

installation_id integer required path
GitHub's id of the installation.
Min 1
Example: 61234567
repository_id integer required path
GitHub's id of the repository.
Min 1
Example: 812345678

Query Parameters

branch string optional query
The branch whose head is read.
Default mainMin length 1Max length 255
path string optional query
The file, from the repository root.
Default b3os.yamlMin length 1Max length 255

Responses

200 What the file at the branch head declares.
application/json
object string REQUIRED
Values github_manifest
repository object REQUIRED
id integer REQUIRED
full_name string REQUIRED
branch string REQUIRED
path string REQUIRED
commit string | null REQUIRED
The branch head read; null when the branch does not exist.
found boolean REQUIRED
The file is at that commit.
name string | null REQUIRED
The application name the file declares (name).
version integer | null REQUIRED
problems object[] REQUIRED
Why the file would not deploy, at most 20, each where it is (b3os.yaml:4:3).
Array of:
at string REQUIRED
message string REQUIRED
400 The request failed validation (invalid_request, invalid_url).
401 Missing, malformed, expired or revoked credentials (unauthorized).
403 Authenticated but not allowed (forbidden, egress_denied).
404 The installation cannot read the repository, or the installation is not yours (github_repository_not_accessible, github_installation_not_found).
429 A rate, concurrency or quota limit applies (rate_limited, concurrency_limited, quota_exceeded).
500 Something failed inside B3OS (internal). Retry with backoff.
503 The B3OS GitHub App is not set up on this deployment (github_app_not_configured).
curl -X GET 'https://beta-api.b3os.org/v1/github/installations/61234567/repositories/812345678/manifest' \  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://beta-api.b3os.org/v1/github/installations/61234567/repositories/812345678/manifest', {  method: 'GET',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN"  }});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://beta-api.b3os.org/v1/github/installations/61234567/repositories/812345678/manifest', headers=headers)print(response.json())
200 Response
{  "object": "github_manifest",  "repository": {    "id": 812345678,    "full_name": "acme/research-agent"  },  "branch": "main",  "path": "b3os.yaml",  "commit": "3f2c1b0a9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a",  "found": true,  "name": "research-agent",  "version": 1,  "problems": []}
Ask a question... ⌘I