compare_versions
Compare commits, branches, or tags to identify differences between code versions in GitLab projects for code review and change analysis.
Instructions
Compare two commits/branches/tags to see the differences between them.
Args:
project_id: The GitLab project ID or URL-encoded path
from_sha: The source commit/branch/tag
to_sha: The target commit/branch/tag
Returns:
Dict containing the comparison information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| from_sha | Yes | ||
| to_sha | Yes |
Input Schema (JSON Schema)
{
"properties": {
"from_sha": {
"title": "From Sha",
"type": "string"
},
"project_id": {
"title": "Project Id",
"type": "string"
},
"to_sha": {
"title": "To Sha",
"type": "string"
}
},
"required": [
"project_id",
"from_sha",
"to_sha"
],
"type": "object"
}