gitlab_mr_changes
Read a merge request's per-file diff summary with status, line counts, and capped patches to find paths and lines before commenting, or fetch one file's patch.
Instructions
The merge request diff, summarised per file: status, added/removed line counts and a capped patch. Read this before commenting on a line, and to learn which paths and lines exist. Use path to pull one file's patch at a larger cap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iid | Yes | project-scoped internal id - the number in !123 for a merge request or #123 for an issue, not the global id | |
| path | No | return only this file | |
| project | Yes | project id ('42') or full path ('group/subgroup/app'); a path is URL-encoded for you | |
| maxFiles | No | files to include; the rest are counted in stats.omittedFiles | |
| maxPatchChars | No | patch characters per file; a cut patch sets patchTruncated |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iid | No | ||
| sha | No | source-branch HEAD; pass this to gitlab_mr_merge to pin the merge | |
| files | Yes | one entry per returned file; capped by maxPatchChars each | |
| stats | Yes | ||
| web_url | No | ||
| merge_status | No | ||
| source_branch | No | ||
| target_branch | No | ||
| work_in_progress | No |