State that two repositories are related for AI review
import requests
url = "https://platform.ankra.app/api/v1/org/ai-gateway/related-repos"
payload = {
"binding_external_id": "<string>",
"related_repo_full_name": "<string>",
"repo_full_name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
binding_external_id: '<string>',
related_repo_full_name: '<string>',
repo_full_name: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/org/ai-gateway/related-repos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/ai-gateway/related-repos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"binding_external_id": "<string>",
"related_repo_full_name": "<string>",
"repo_full_name": "<string>"
}
'{
"id": "<string>",
"provider": "<string>",
"related_repo_full_name": "<string>",
"repo_full_name": "<string>"
}AI Environment
State that two repositories are related for AI review
States that two repositories (repo_full_name and related_repo_full_name, as owner/name) are related, so an AI review of one may read the other. Organisation admins only; GitHub is the only supported provider, and both repositories must be reachable by the GitHub App installation named in binding_external_id.
POST
/
api
/
v1
/
org
/
ai-gateway
/
related-repos
State that two repositories are related for AI review
import requests
url = "https://platform.ankra.app/api/v1/org/ai-gateway/related-repos"
payload = {
"binding_external_id": "<string>",
"related_repo_full_name": "<string>",
"repo_full_name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
binding_external_id: '<string>',
related_repo_full_name: '<string>',
repo_full_name: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/org/ai-gateway/related-repos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/ai-gateway/related-repos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"binding_external_id": "<string>",
"related_repo_full_name": "<string>",
"repo_full_name": "<string>"
}
'{
"id": "<string>",
"provider": "<string>",
"related_repo_full_name": "<string>",
"repo_full_name": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json