haops_get_branch_diff
Compare two Git branches to see commits ahead and behind, changed files, diff content, and detect conflicts before creating a merge request.
Instructions
Compare two branches in a HAOps Git repository. Returns commits ahead/behind, changed files with stats, diff content, and conflict detection. Use before creating an MR to preview changes.
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": {
"projectSlug": "<projectSlug>",
"sourceBranch": "<sourceBranch>",
"targetBranch": "<targetBranch>"
},
"name": "haops_get_branch_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectSlug | Yes | The project slug (URL identifier) | |
| sourceBranch | Yes | Source branch | |
| targetBranch | Yes | Target branch | |
| repositoryName | No | Repository name for multi-repo projects (default: first/main repo) |