git.json•6.59 kB
{
"nodeType": "n8n-nodes-base.git",
"displayName": "Git",
"description": "Control git.",
"version": 1,
"properties": [
{
"name": "key",
"displayName": "Key",
"type": "string",
"default": "",
"description": "Name of the key to set",
"placeholder": "user.email",
"required": true,
"displayOptions": {
"show": {
"operation": [
"addConfig"
]
}
}
},
{
"name": "value",
"displayName": "Value",
"type": "string",
"default": "",
"description": "Value of the key to set",
"placeholder": "name@example.com",
"required": true,
"displayOptions": {
"show": {
"operation": [
"addConfig"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Append setting rather than set it in the local config",
"placeholder": "Add option",
"displayOptions": {
"show": {
"operation": [
"addConfig"
]
}
}
},
{
"name": "pathsToAdd",
"displayName": "Paths to Add",
"type": "string",
"default": "",
"description": "Comma-separated list of paths (absolute or relative to Repository Path) of files or folders to add",
"placeholder": "README.md",
"required": true,
"displayOptions": {
"show": {
"operation": [
"add"
]
}
}
},
{
"name": "sourceRepository",
"displayName": "Source Repository",
"type": "string",
"default": "",
"description": "The URL or path of the repository to clone",
"placeholder": "https://github.com/n8n-io/n8n",
"required": true,
"displayOptions": {
"show": {
"operation": [
"clone"
]
}
}
},
{
"name": "message",
"displayName": "Message",
"type": "string",
"default": "",
"description": "The commit message to use",
"displayOptions": {
"show": {
"operation": [
"commit"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"operation": [
"log"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 100,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 100
},
"displayOptions": {
"show": {
"operation": [
"log"
],
"returnAll": [
false
]
}
}
},
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "The name of the tag to create",
"required": true,
"displayOptions": {
"show": {
"operation": [
"tag"
]
}
}
},
{
"name": "authentication",
"displayName": "Authentication",
"type": "options",
"default": "none",
"description": "The way to authenticate",
"options": [
{
"name": "Authenticate",
"value": "gitPassword"
},
{
"name": "None",
"value": "none"
}
],
"displayOptions": {
"show": {
"operation": [
"clone",
"push"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "log",
"description": "Add a file or folder to commit",
"options": [
{
"name": "Add",
"value": "add",
"description": "Add a file or folder to commit"
},
{
"name": "Add Config",
"value": "addConfig",
"description": "Add configuration property"
},
{
"name": "Clone",
"value": "clone",
"description": "Clone a repository"
},
{
"name": "Commit",
"value": "commit",
"description": "Commit files or folders to git"
},
{
"name": "Fetch",
"value": "fetch",
"description": "Fetch from remote repository"
},
{
"name": "List Config",
"value": "listConfig",
"description": "Return current configuration"
},
{
"name": "Log",
"value": "log",
"description": "Return git commit history"
},
{
"name": "Pull",
"value": "pull",
"description": "Pull from remote repository"
},
{
"name": "Push",
"value": "push",
"description": "Push to remote repository"
},
{
"name": "Push Tags",
"value": "pushTags",
"description": "Push Tags to remote repository"
},
{
"name": "Status",
"value": "status",
"description": "Return status of current repository"
},
{
"name": "Tag",
"value": "tag",
"description": "Create a new tag"
},
{
"name": "User Setup",
"value": "userSetup",
"description": "Set the user"
}
]
},
{
"name": "repositoryPath",
"displayName": "Repository Path",
"type": "string",
"default": "",
"description": "Local path of the git repository to operate on",
"placeholder": "/tmp/repository",
"required": true,
"displayOptions": {
"hide": {
"operation": [
"clone"
]
}
}
}
],
"credentialsConfig": [
{
"name": "gitPassword",
"required": true
},
{
"name": "authentication",
"required": false
},
{
"name": "operation",
"required": false
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}