bulk_action
Perform multiple Git operations in sequence on a repository using a single command. Stages files, commits changes, and pushes updates efficiently.
Instructions
Execute multiple Git operations in sequence. This is the preferred way to execute multiple operations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
actions | Yes | Array of Git operations to execute in sequence | |
path | No | Path to repository. MUST be an absolute path (e.g., /Users/username/projects/my-repo) |
Input Schema (JSON Schema)
{
"properties": {
"actions": {
"description": "Array of Git operations to execute in sequence",
"items": {
"oneOf": [
{
"properties": {
"files": {
"description": "Files to stage. If not provided, stages all changes.",
"items": {
"description": "MUST be an absolute path (e.g., /Users/username/projects/my-repo/src/file.js)",
"type": "string"
},
"type": "array"
},
"type": {
"const": "stage"
}
},
"required": [
"type"
],
"type": "object"
},
{
"properties": {
"message": {
"description": "Commit message",
"type": "string"
},
"type": {
"const": "commit"
}
},
"required": [
"type",
"message"
],
"type": "object"
},
{
"properties": {
"branch": {
"description": "Branch name",
"type": "string"
},
"remote": {
"default": "origin",
"description": "Remote name",
"type": "string"
},
"type": {
"const": "push"
}
},
"required": [
"type",
"branch"
],
"type": "object"
}
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"path": {
"description": "Path to repository. MUST be an absolute path (e.g., /Users/username/projects/my-repo)",
"type": "string"
}
},
"required": [
"actions"
],
"type": "object"
}