Choose what happens to pull requests
set_review_intakeChooses what happens when someone opens a pull request (a review) at one project's code home that no CodeGene task owns, as the project settings' Pull requests row does: adopt makes each new one a task, ignore leaves it a preview only. Only owners and admins can. A choice a decision holds is never changed: the answer is status held with the reason, which you tell the person as it is; do not try again. Answers status saved, unchanged, held, forbidden, invalid or no-code-home.
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": {
"project_id": "<project_id>",
"choice": "<choice>"
},
"name": "set_review_intake"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| choice | Yes | adopt or ignore, as get_review_intake lists them. | |
| project_id | Yes | The site (list_projects gives ids). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |