push_files
Commit multiple files to a GitHub repository in one action using push_files. Specify the owner, repo, branch, files, and message to streamline file updates efficiently.
Instructions
Push multiple files to a GitHub repository in a single commit
Input Schema
Name | Required | Description | Default |
---|---|---|---|
branch | Yes | Branch to push to (e.g., 'main' or 'master') | |
files | Yes | Array of files to push | |
message | Yes | Commit message | |
owner | Yes | Repository owner (username or organization) | |
repo | Yes | Repository name |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"branch": {
"description": "Branch to push to (e.g., 'main' or 'master')",
"type": "string"
},
"files": {
"description": "Array of files to push",
"items": {
"additionalProperties": false,
"properties": {
"content": {
"type": "string"
},
"path": {
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
},
"type": "array"
},
"message": {
"description": "Commit message",
"type": "string"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"branch",
"files",
"message"
],
"type": "object"
}