pull:初次提交
This commit is contained in:
@@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
19
n8n-n8n-1.109.2/packages/nodes-base/nodes/Git/descriptions/AddDescription.ts
Executable file
19
n8n-n8n-1.109.2/packages/nodes-base/nodes/Git/descriptions/AddDescription.ts
Executable 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,
|
||||
},
|
||||
];
|
||||
@@ -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,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.',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
55
n8n-n8n-1.109.2/packages/nodes-base/nodes/Git/descriptions/LogDescription.ts
Executable file
55
n8n-n8n-1.109.2/packages/nodes-base/nodes/Git/descriptions/LogDescription.ts
Executable 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',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
@@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
17
n8n-n8n-1.109.2/packages/nodes-base/nodes/Git/descriptions/TagDescription.ts
Executable file
17
n8n-n8n-1.109.2/packages/nodes-base/nodes/Git/descriptions/TagDescription.ts
Executable 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,
|
||||
},
|
||||
];
|
||||
7
n8n-n8n-1.109.2/packages/nodes-base/nodes/Git/descriptions/index.ts
Executable file
7
n8n-n8n-1.109.2/packages/nodes-base/nodes/Git/descriptions/index.ts
Executable 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';
|
||||
Reference in New Issue
Block a user