Read an application's setup pull request auto-merge setting (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/auto-merge-setup-pull-requests"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/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://api.platform.ankra.app/org/applications/{application_id}/auto-merge-setup-pull-requests \
--cookie ankra_session={
"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 (browser session)
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.
GET
/
org
/
applications
/
{application_id}
/
auto-merge-setup-pull-requests
Read an application's setup pull request auto-merge setting (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/auto-merge-setup-pull-requests"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/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://api.platform.ankra.app/org/applications/{application_id}/auto-merge-setup-pull-requests \
--cookie ankra_session={
"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.