Read an application's setup pull request auto-merge setting
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/auto-merge-setup-pull-requests"
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/applications/{application_id}/auto-merge-setup-pull-requests', 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/applications/{application_id}/auto-merge-setup-pull-requests \
--header 'Authorization: Bearer <token>'{
"enabled": true,
"organisation_enabled": true,
"effective": true
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Applications
Read an application's setup pull request auto-merge setting
Read whether Ankra may merge this application’s setup pull requests on its own once every check and Ankra’s proof of the head are green. enabled is the application’s own answer, or null when it follows its organisation’s auto_merge_setup_pull_requests; effective is what the merge acts on: on only when the application says on, or when it follows an organisation that opted in. Readable by any member. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).
GET
/
api
/
v1
/
org
/
applications
/
{application_id}
/
auto-merge-setup-pull-requests
Read an application's setup pull request auto-merge setting
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/auto-merge-setup-pull-requests"
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/applications/{application_id}/auto-merge-setup-pull-requests', 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/applications/{application_id}/auto-merge-setup-pull-requests \
--header 'Authorization: Bearer <token>'{
"enabled": true,
"organisation_enabled": true,
"effective": true
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Response
Successful Response
An application's setup pull request auto-merge setting: its own answer, its organisation's, and the effective one the merge acts on.