push_files
Push multiple files to a GitLab project in a single commit, allowing you to batch file updates with one commit message for efficient repository management.
Instructions
Push multiple files to a GitLab project in a single commit
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| branch | Yes | Branch to push to | |
| files | Yes | Array of files to push | |
| commit_message | Yes | Commit message |
Input Schema (JSON Schema)
{
"properties": {
"branch": {
"description": "Branch to push to",
"type": "string"
},
"commit_message": {
"description": "Commit message",
"type": "string"
},
"files": {
"description": "Array of files to push",
"items": {
"additionalProperties": false,
"properties": {
"content": {
"description": "Content of the file",
"type": "string"
},
"file_path": {
"description": "Path where to create the file",
"type": "string"
}
},
"required": [
"file_path",
"content"
],
"type": "object"
},
"type": "array"
},
"project_id": {
"description": "Project ID or complete URL-encoded path to project",
"type": "string"
}
},
"required": [
"project_id",
"branch",
"files",
"commit_message"
],
"type": "object"
}