first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled

This commit is contained in:
2026-03-17 16:22:57 +03:30
commit 3d5eaf9445
15349 changed files with 2847338 additions and 0 deletions
@@ -0,0 +1,84 @@
import type { INodeProperties } from 'n8n-workflow';
export const ALLOWED_CONFIG_KEYS = ['user.email', 'user.name', 'remote.origin.url'];
export const addConfigFields: INodeProperties[] = [
{
displayName: 'Key',
name: 'key',
type: 'options',
displayOptions: {
show: {
operation: ['addConfig'],
'@version': [{ _cnd: { gte: 1.1 } }],
},
},
options: ALLOWED_CONFIG_KEYS.map((key) => ({
name: key,
value: key,
})),
default: '',
description: 'Name of the key to set',
required: true,
},
{
displayName: 'Key',
name: 'key',
type: 'string',
displayOptions: {
show: {
operation: ['addConfig'],
'@version': [{ _cnd: { lt: 1.1 } }],
},
},
default: '',
placeholder: 'user.email',
description: 'Name of the key to set',
required: true,
},
{
displayName: 'Value',
name: 'value',
type: 'string',
displayOptions: {
show: {
operation: ['addConfig'],
},
},
default: '',
placeholder: 'name@example.com',
description: 'Value of the key to set',
required: true,
},
{
displayName: 'Options',
name: 'options',
type: 'collection',
displayOptions: {
show: {
operation: ['addConfig'],
},
},
placeholder: 'Add option',
default: {},
options: [
{
displayName: 'Mode',
name: 'mode',
type: 'options',
options: [
{
name: 'Append',
value: 'append',
},
{
name: 'Set',
value: 'set',
},
],
default: 'set',
description: 'Append setting rather than set it in the local config',
},
],
},
];
@@ -0,0 +1,19 @@
import type { INodeProperties } from 'n8n-workflow';
export const addFields: INodeProperties[] = [
{
displayName: 'Paths to Add',
name: 'pathsToAdd',
type: 'string',
displayOptions: {
show: {
operation: ['add'],
},
},
default: '',
placeholder: 'README.md',
description:
'Comma-separated list of paths (absolute or relative to Repository Path) of files or folders to add',
required: true,
},
];
@@ -0,0 +1,18 @@
import type { INodeProperties } from 'n8n-workflow';
export const cloneFields: INodeProperties[] = [
{
displayName: 'Source Repository',
name: 'sourceRepository',
type: 'string',
displayOptions: {
show: {
operation: ['clone'],
},
},
default: '',
placeholder: 'https://github.com/n8n-io/n8n',
description: 'The URL or path of the repository to clone',
required: true,
},
];
@@ -0,0 +1,48 @@
import type { INodeProperties } from 'n8n-workflow';
export const commitFields: INodeProperties[] = [
{
displayName: 'Message',
name: 'message',
type: 'string',
displayOptions: {
show: {
operation: ['commit'],
},
},
default: '',
description: 'The commit message to use',
},
{
displayName: 'Options',
name: 'options',
type: 'collection',
displayOptions: {
show: {
operation: ['commit'],
},
},
placeholder: 'Add option',
default: {},
options: [
{
displayName: 'Branch',
name: 'branch',
type: 'string',
default: '',
placeholder: 'main',
description:
'The branch to switch to before committing. If empty or not set, will commit to current branch.',
},
{
displayName: 'Paths to Add',
name: 'pathsToAdd',
type: 'string',
default: '',
placeholder: '/data/file1.json',
description:
'Comma-separated list of paths (absolute or relative to Repository Path) of files or folders to commit. If not set will all "added" files and folders be committed.',
},
],
},
];
@@ -0,0 +1,55 @@
import type { INodeProperties } from 'n8n-workflow';
export const logFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
operation: ['log'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
operation: ['log'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
maxValue: 100,
},
default: 100,
description: 'Max number of results to return',
},
{
displayName: 'Options',
name: 'options',
type: 'collection',
displayOptions: {
show: {
operation: ['log'],
},
},
placeholder: 'Add option',
default: {},
options: [
{
displayName: 'File',
name: 'file',
type: 'string',
default: 'README.md',
description:
'The path (absolute or relative to Repository Path) of file or folder to get the history of',
},
],
},
];
@@ -0,0 +1,35 @@
import type { INodeProperties } from 'n8n-workflow';
export const pushFields: INodeProperties[] = [
{
displayName: 'Options',
name: 'options',
type: 'collection',
displayOptions: {
show: {
operation: ['push'],
},
},
placeholder: 'Add option',
default: {},
options: [
{
displayName: 'Branch',
name: 'branch',
type: 'string',
default: '',
placeholder: 'main',
description:
'The branch to switch to before pushing. If empty or not set, will push current branch.',
},
{
displayName: 'Target Repository',
name: 'targetRepository',
type: 'string',
default: '',
placeholder: 'https://github.com/n8n-io/n8n',
description: 'The URL or path of the repository to push to',
},
],
},
];
@@ -0,0 +1,56 @@
import type { INodeProperties } from 'n8n-workflow';
export const reflogFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
operation: ['reflog'],
},
},
default: false,
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
operation: ['reflog'],
returnAll: [false],
},
},
typeOptions: {
minValue: 1,
maxValue: 100,
},
default: 100,
description: 'Max number of results to return',
},
{
displayName: 'Options',
name: 'options',
type: 'collection',
displayOptions: {
show: {
operation: ['reflog'],
},
},
placeholder: 'Add option',
default: {},
options: [
{
displayName: 'Reference',
name: 'reference',
type: 'string',
default: '',
placeholder: 'HEAD',
description:
'The reference to show the reflog for (e.g., HEAD, branch name). Leave empty for HEAD.',
},
],
},
];
@@ -0,0 +1,86 @@
import type { INodeProperties } from 'n8n-workflow';
export const switchBranchFields: INodeProperties[] = [
{
displayName: 'Branch Name',
name: 'branchName',
type: 'string',
displayOptions: {
show: {
operation: ['switchBranch'],
},
},
default: '',
placeholder: 'feature/new-feature',
required: true,
description: 'The name of the branch to switch to',
},
{
displayName: 'Options',
name: 'options',
type: 'collection',
displayOptions: {
show: {
operation: ['switchBranch'],
},
},
placeholder: 'Add option',
default: {},
options: [
{
displayName: 'Create Branch If Not Exists',
name: 'createBranch',
type: 'boolean',
default: true,
description: 'Whether to create the branch if it does not exist',
},
{
displayName: 'Start Point',
name: 'startPoint',
type: 'string',
default: '',
placeholder: 'main',
description:
'The commit/branch/tag to create the new branch from. If not set, creates from current HEAD.',
displayOptions: {
show: {
createBranch: [true],
},
},
},
{
displayName: 'Force Switch',
name: 'force',
type: 'boolean',
default: false,
description: 'Whether to force the branch switch, discarding any local changes',
},
{
displayName: 'Set Upstream',
name: 'setUpstream',
type: 'boolean',
default: false,
description: 'Whether to set up tracking to a remote branch when creating a new branch',
displayOptions: {
show: {
createBranch: [true],
},
},
},
{
displayName: 'Remote Name',
name: 'remoteName',
type: 'string',
default: 'origin',
placeholder: 'origin',
description: 'The name of the remote to track',
displayOptions: {
show: {
createBranch: [true],
setUpstream: [true],
},
},
},
],
},
];
@@ -0,0 +1,17 @@
import type { INodeProperties } from 'n8n-workflow';
export const tagFields: INodeProperties[] = [
{
displayName: 'Name',
name: 'name',
type: 'string',
displayOptions: {
show: {
operation: ['tag'],
},
},
default: '',
description: 'The name of the tag to create',
required: true,
},
];
@@ -0,0 +1,9 @@
export * from './AddDescription';
export * from './AddConfigDescription';
export * from './CloneDescription';
export * from './CommitDescription';
export * from './LogDescription';
export * from './PushDescription';
export * from './ReflogDescription';
export * from './SwitchBranchDescription';
export * from './TagDescription';