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>"
}
]
}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).
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
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.
The application's own answer; null when it follows its organisation. A stored value that is not a boolean reads as false.
The organisation's auto_merge_setup_pull_requests.
Whether Ankra may merge this application's setup pull requests: on only when enabled is true, or when enabled is null and organisation_enabled is true.