Compare a repository version with the tracked branch
import requests
url = "https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/pipeline-source"
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/pipeline-repositories/{repository_id}/pipeline-source', 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/pipeline-repositories/{repository_id}/pipeline-source \
--header 'Authorization: Bearer <token>'{
"branch": "<string>",
"checked_at": "2023-11-07T05:31:56Z",
"commit_sha": "<string>",
"commits_ahead": 1,
"commits_behind": 1,
"head_sha": "<string>",
"image_tag": "<string>",
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "current"
}Pipelines
Compare a repository version with the tracked branch
Resolves an immutable tag through owned successful publish outputs, then reads the source provider graph against the actual tracked branch head. Missing, ambiguous and unavailable evidence has no commit count. Requires pipelines.read. Read-only.
GET
/
api
/
v1
/
org
/
pipeline-repositories
/
{repository_id}
/
pipeline-source
Compare a repository version with the tracked branch
import requests
url = "https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/pipeline-source"
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/pipeline-repositories/{repository_id}/pipeline-source', 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/pipeline-repositories/{repository_id}/pipeline-source \
--header 'Authorization: Bearer <token>'{
"branch": "<string>",
"checked_at": "2023-11-07T05:31:56Z",
"commit_sha": "<string>",
"commits_ahead": 1,
"commits_behind": 1,
"head_sha": "<string>",
"image_tag": "<string>",
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "current"
}Authorizations
Response
Read-only source evidence