Read a repository release for a merged pull request
import requests
url = "https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/pipeline-runs/{run_id}/release"
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-runs/{run_id}/release', 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-runs/{run_id}/release \
--header 'Authorization: Bearer <token>'{
"branch": "<string>",
"checked_at": "2023-11-07T05:31:56Z",
"checked_head_matches": true,
"merge_commit_sha": "<string>",
"merged_head_sha": "<string>",
"release_run": {
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"head_sha": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_fork": true,
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"outcome": "<string>",
"pull_request_number": 123,
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_number": 123,
"status": "<string>",
"trigger": "<string>",
"trigger_ref": "<string>"
},
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "merged"
}Pipelines
Read a repository release for a merged pull request
Reads the checked run and provider-confirmed full merge commit, then the exact owned push run on the tracked branch. Failed releases remain visible. A missing exact run is null; a newer commit is never substituted. Requires pipelines.read. Read-only.
GET
/
api
/
v1
/
org
/
pipeline-repositories
/
{repository_id}
/
pipeline-runs
/
{run_id}
/
release
Read a repository release for a merged pull request
import requests
url = "https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/pipeline-runs/{run_id}/release"
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-runs/{run_id}/release', 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-runs/{run_id}/release \
--header 'Authorization: Bearer <token>'{
"branch": "<string>",
"checked_at": "2023-11-07T05:31:56Z",
"checked_head_matches": true,
"merge_commit_sha": "<string>",
"merged_head_sha": "<string>",
"release_run": {
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"head_sha": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_fork": true,
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"outcome": "<string>",
"pull_request_number": 123,
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_number": 123,
"status": "<string>",
"trigger": "<string>",
"trigger_ref": "<string>"
},
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "merged"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Read-only source evidence
Pattern:
^[a-f0-9]{40}$Pattern:
^[a-f0-9]{40}$Show child attributes
Show child attributes
Available options:
merged, open, closed, other_branch, not_pull_request, unavailable, unsupported