Add to merge train
add_to_merge_trainPut a GitHub pull request in its repository's Ankra merge train, which tests it on top of the pull requests ahead of it and merges it when green. head_sha pins the head the train tests; a pull request already in the train answers its entry (already_in_train). You must be an organisation administrator, the pull request's author, or hold push access on the repository. Refused to a service account. Address the repository with exactly one of repository_id, application_id, or owner and repo. Needs pipelines.operate.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pull_request_number": "<pull_request_number>"
},
"name": "add_to_merge_train"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name, with owner. | |
| owner | No | Repository owner (organisation or user), with repo, instead of repository_id. | |
| head_sha | No | Full commit sha the train must test and merge; default the head it reads first. | |
| provider | No | Narrows owner and repo when the same repository is connected on two providers. | |
| repository_id | No | The connected repository's id, from list_pipeline_repositories. | |
| application_id | No | An application whose linked repository to address, instead of repository_id. | |
| pull_request_number | Yes | The pull request to queue. |