gitlab_compare_branches
Compare two GitLab branches to identify commits and changed files for release notes or tracking updates between versions.
Instructions
Compare two branches — returns up to 30 commits and the list of changed files.
Use for "what's in release/x.y vs master?" or for release-note drafting.
Examples:
- "What's new in release/1.5 vs master" → source='release/1.5', target='master'
- Don't use to fetch full diffs of an MR — use gitlab_get_merge_request_changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source branch/tag/SHA. | |
| target | No | Target branch (default 'master'). | master |
| project_path | No | GitLab project path (e.g. 'my-org/my-repo'). When omitted, the default from GITLAB_PROJECT_PATH env var is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| target | Yes | ||
| commits_count | Yes | ||
| diffs_count | Yes | ||
| commits | Yes | ||
| changed_files | Yes |