pull:初次提交

This commit is contained in:
Yep_Q
2025-09-08 04:48:28 +08:00
parent 5c0619656d
commit f64f498365
11751 changed files with 1953723 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
import type { INodeProperties } from 'n8n-workflow';
export const addConfigFields: INodeProperties[] = [
{
displayName: 'Key',
name: 'key',
type: 'string',
displayOptions: {
show: {
operation: ['addConfig'],
},
},
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',
},
],
},
];

View File

@@ -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,
},
];

View File

@@ -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,
},
];

View File

@@ -0,0 +1,39 @@
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: '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.',
},
],
},
];

View File

@@ -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',
},
],
},
];

View File

@@ -0,0 +1,26 @@
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: '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',
},
],
},
];

View File

@@ -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,
},
];

View File

@@ -0,0 +1,7 @@
export * from './AddDescription';
export * from './AddConfigDescription';
export * from './CloneDescription';
export * from './CommitDescription';
export * from './LogDescription';
export * from './PushDescription';
export * from './TagDescription';