Repos
Register code repositories and configure VCS integration for automated task triggers
/api/reposAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
"true" | "false"Response Body
application/json
curl -X GET "http://localhost:3013/api/repos"{
"repos": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"url": "string",
"name": "string",
"clonePath": "string",
"defaultBranch": "main",
"autoClone": true,
"hooks": {
"enabled": false
},
"guidelines": {
"prChecks": [
"string"
],
"mergeChecks": [
"string"
],
"allowMerge": false,
"review": [
"string"
],
"mergePolicy": {
"autoMerge": {
"enabled": false,
"threshold": 80,
"baseScores": {},
"maxLines": {},
"riskyPaths": [],
"classes": []
},
"agentsMayMerge": true,
"notify": {
"dmWhenNotAutoMerging": true,
"digestAt": "string",
"timezone": "string"
}
}
},
"createdAt": "string",
"lastUpdatedAt": "string"
}
]
}/api/reposAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/repos" \ -H "Content-Type: application/json" \ -d '{ "url": "string", "name": "string" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"url": "string",
"name": "string",
"clonePath": "string",
"defaultBranch": "main",
"autoClone": true,
"hooks": {
"enabled": false
},
"guidelines": {
"prChecks": [
"string"
],
"mergeChecks": [
"string"
],
"allowMerge": false,
"review": [
"string"
],
"mergePolicy": {
"autoMerge": {
"enabled": false,
"threshold": 80,
"baseScores": {},
"maxLines": {},
"riskyPaths": [],
"classes": []
},
"agentsMayMerge": true,
"notify": {
"dmWhenNotAutoMerging": true,
"digestAt": "string",
"timezone": "string"
}
}
},
"createdAt": "string",
"lastUpdatedAt": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}/api/repos/{id}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidResponse Body
application/json
application/json
curl -X DELETE "http://localhost:3013/api/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"success": true
}{
"error": "string"
}/api/repos/{id}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidResponse Body
application/json
application/json
curl -X GET "http://localhost:3013/api/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"url": "string",
"name": "string",
"clonePath": "string",
"defaultBranch": "main",
"autoClone": true,
"hooks": {
"enabled": false
},
"guidelines": {
"prChecks": [
"string"
],
"mergeChecks": [
"string"
],
"allowMerge": false,
"review": [
"string"
],
"mergePolicy": {
"autoMerge": {
"enabled": false,
"threshold": 80,
"baseScores": {},
"maxLines": {},
"riskyPaths": [],
"classes": []
},
"agentsMayMerge": true,
"notify": {
"dmWhenNotAutoMerging": true,
"digestAt": "string",
"timezone": "string"
}
}
},
"createdAt": "string",
"lastUpdatedAt": "string"
}{
"error": "string"
}/api/repos/{id}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "http://localhost:3013/api/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"url": "string",
"name": "string",
"clonePath": "string",
"defaultBranch": "main",
"autoClone": true,
"hooks": {
"enabled": false
},
"guidelines": {
"prChecks": [
"string"
],
"mergeChecks": [
"string"
],
"allowMerge": false,
"review": [
"string"
],
"mergePolicy": {
"autoMerge": {
"enabled": false,
"threshold": 80,
"baseScores": {},
"maxLines": {},
"riskyPaths": [],
"classes": []
},
"agentsMayMerge": true,
"notify": {
"dmWhenNotAutoMerging": true,
"digestAt": "string",
"timezone": "string"
}
}
},
"createdAt": "string",
"lastUpdatedAt": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}