List AI code reviews
import requests
url = "https://platform.ankra.app/api/v1/org/ai-gateway/code-reviews"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-gateway/code-reviews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/ai-gateway/code-reviews \
--header 'Authorization: Bearer <token>'{
"reviews": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "github",
"repo_owner": "<string>",
"repo_name": "<string>",
"pull_request_number": 123,
"pull_request_title": "<string>",
"pull_request_url": "<string>",
"head_sha": "<string>",
"verdict": "approve",
"findings_count": 123,
"created_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>",
"period": "<string>"
}AI Environment
List AI code reviews
Every pull request review Ankra AI’s code review produced for the organisation, newest first, one keyset page at a time, with its verdict and how many findings it raised. Any member of the organisation may read it.
GET
/
api
/
v1
/
org
/
ai-gateway
/
code-reviews
List AI code reviews
import requests
url = "https://platform.ankra.app/api/v1/org/ai-gateway/code-reviews"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-gateway/code-reviews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/ai-gateway/code-reviews \
--header 'Authorization: Bearer <token>'{
"reviews": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "github",
"repo_owner": "<string>",
"repo_name": "<string>",
"pull_request_number": 123,
"pull_request_title": "<string>",
"pull_request_url": "<string>",
"head_sha": "<string>",
"verdict": "approve",
"findings_count": 123,
"created_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>",
"period": "<string>"
}