Git provider identifier (appId for GitHub).
Git provider webhook triggers Scout to create a job todo. Similarly, a lint job started or completed triggers jobs todo. Since Scout is stateless and distributed, this is the API for storing things to do. It's also a way to communicate with Scout by making jobs for it to do too (such as communicating status back to Git). Finally, it can be used to trigger Scout to update again in the case of a GitHub webhook outage.
Security
ApiKey
Enum:"GITHUB_CLOUD""GITHUB_SERVER""GITLAB_CLOUD""GITLAB_SELF_MANAGED""BITBUCKET_CLOUD""BITBUCKET_DATACENTER""AZURE"
- Mock serverhttps://redocly.com/_mock/docs/realm/scout/api/openapi/orgs/{orgId}/projects/{projectId}/scout/todos
- Production main server.https://app.cloud.redocly.com/api/orgs/{orgId}/projects/{projectId}/scout/todos
curl -i -X POST \
https://redocly.com/_mock/docs/realm/scout/api/openapi/orgs/acme-inc/projects/my-project/scout/todos \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-redocly-scout-version: 1.0.0' \
-d '{
"type": "PROCESS_GIT_REPO",
"providerId": "string",
"providerType": "GITHUB_CLOUD",
"namespaceId": "string",
"repositoryId": "string",
"branch": "string",
"commitSha": "string",
"isMainBranch": false,
"prId": "string",
"parentJobId": "sjob_01h2t9ksv7vmsvbhh5ty40zctw",
"checks": [
{
"name": "Scorecard - Compliance API",
"status": "IN_PROGRESS",
"description": "string",
"targetUrl": "string"
}
],
"metadata": {
"errorMessage": "string",
"errorStack": "string"
}
}'Enum:"GITHUB_CLOUD""GITHUB_SERVER""GITLAB_CLOUD""GITLAB_SELF_MANAGED""BITBUCKET_CLOUD""BITBUCKET_DATACENTER""AZURE"
Response
{ "id": "sjob_01h2t9ksv7vmsvbhh5ty40zctw", "status": "PENDING", "type": "PROCESS_GIT_REPO", "organizationId": "string", "projectId": "string", "providerId": "string", "providerType": "GITHUB_CLOUD", "namespaceId": "string", "repositoryId": "string", "branch": "string", "commitSha": "string", "isMainBranch": false, "prId": "string", "attempts": 0, "parentJobId": "sjob_01h2t9ksv7vmsvbhh5ty40zctw", "checks": [ { … } ], "metadata": { "scoutVersion": "1.0.0", "errorMessage": "string", "errorStack": "string" }, "startedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }