branch.link_pull_request
Link a branch to a pull request and post its status comment on GitHub or GitLab. POST /v1/organizations/{id}/projects/{project}/branches/{branch}/pr.
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": {
"organization_id": "<organization_id>",
"project_id": "<project_id>",
"branch_id": "<branch_id>",
"provider": "<provider>",
"repository": "<repository>",
"number": "<number>",
"confirm": "<confirm>"
},
"name": "branch.link_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Pull request web URL (generic providers) | |
| number | Yes | number (required) | |
| confirm | Yes | Must be true to apply this mutation; otherwise the tool returns the request it would send for approval. | |
| provider | Yes | provider (required) | |
| branch_id | Yes | branch_id (required) | |
| project_id | Yes | project_id (required) | |
| repository | Yes | repository (required) | |
| url_template | No | Preview URL template with {organization}, {project}, {environment} | |
| organization_id | Yes | organization_id (required) |