Enable merge when green
enable_merge_when_greenTurn on Merge when green for the GitHub connection a repository is reached through, so scm_merge_pull_request is honoured there. Use it only when github_get_pull_request's next_step offers it: the connection is in Agent mode and merge when green is off, and the user asked Ankra to merge a pull request. The switch is connection-wide, the same one as AI settings, Connections in the portal: it applies to every repository on that GitHub connection, so say that in plain words before proposing it. It never switches a connection from Ask to Agent mode; a connection in Ask mode is refused, and an organisation admin changes that in the portal. Only an organisation admin (ai.manage) may run it. After it succeeds, propose scm_merge_pull_request for the pull request's current head sha. Requires the exact owner and repo from a prior github_list_repositories or github_get_pull_request call - never guess them.
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": {
"repo": "<repo>"
},
"name": "enable_merge_when_green"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name. Also accepts the combined 'owner/name' form. | |
| owner | No | Repository owner (e.g. 'octocat'). May be embedded in 'repo' as 'owner/name'. |