n8n-nodes-azuredevops-advanced 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/credentials/AzureDevOpsAdvancedApi.credentials.ts +27 -0
- package/dist/credentials/AzureDevOpsAdvancedApi.credentials.d.ts +7 -0
- package/dist/credentials/AzureDevOpsAdvancedApi.credentials.js +31 -0
- package/dist/nodes/AzureDevOpsAdvanced/AzureDevOpsAdvanced.node.d.ts +5 -0
- package/dist/nodes/AzureDevOpsAdvanced/AzureDevOpsAdvanced.node.js +529 -0
- package/dist/nodes/AzureDevOpsAdvanced/GenericFunctions.d.ts +2 -0
- package/dist/nodes/AzureDevOpsAdvanced/GenericFunctions.js +26 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/ArtifactsDescription.d.ts +3 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/ArtifactsDescription.js +48 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/BoardDescription.d.ts +3 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/BoardDescription.js +64 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/GitDescription.d.ts +3 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/GitDescription.js +107 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/PipelineDescription.d.ts +3 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/PipelineDescription.js +64 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/PullRequestDescription.d.ts +3 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/PullRequestDescription.js +298 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/ServiceHookDescription.d.ts +3 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/ServiceHookDescription.js +73 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/TestPlanDescription.d.ts +3 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/TestPlanDescription.js +66 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/TfvcDescription.d.ts +3 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/TfvcDescription.js +50 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/WikiDescription.d.ts +3 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/WikiDescription.js +82 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/WorkItemDescription.d.ts +3 -0
- package/dist/nodes/AzureDevOpsAdvanced/descriptions/WorkItemDescription.js +189 -0
- package/nodes/AzureDevOpsAdvanced/AzureDevOpsAdvanced.node.ts +541 -0
- package/nodes/AzureDevOpsAdvanced/GenericFunctions.ts +35 -0
- package/nodes/AzureDevOpsAdvanced/azureDevOps.svg +12 -0
- package/nodes/AzureDevOpsAdvanced/descriptions/ArtifactsDescription.ts +48 -0
- package/nodes/AzureDevOpsAdvanced/descriptions/BoardDescription.ts +64 -0
- package/nodes/AzureDevOpsAdvanced/descriptions/GitDescription.ts +108 -0
- package/nodes/AzureDevOpsAdvanced/descriptions/PipelineDescription.ts +64 -0
- package/nodes/AzureDevOpsAdvanced/descriptions/PullRequestDescription.ts +298 -0
- package/nodes/AzureDevOpsAdvanced/descriptions/ServiceHookDescription.ts +73 -0
- package/nodes/AzureDevOpsAdvanced/descriptions/TestPlanDescription.ts +66 -0
- package/nodes/AzureDevOpsAdvanced/descriptions/TfvcDescription.ts +50 -0
- package/nodes/AzureDevOpsAdvanced/descriptions/WikiDescription.ts +82 -0
- package/nodes/AzureDevOpsAdvanced/descriptions/WorkItemDescription.ts +189 -0
- package/package.json +54 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.artifactsFields = exports.artifactsOperations = void 0;
|
|
4
|
+
exports.artifactsOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['artifacts'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{ name: 'List Feeds', value: 'listFeeds', action: 'List all universal or package feeds' },
|
|
17
|
+
{ name: 'List Packages', value: 'listPackages', action: 'List packages in a feed' },
|
|
18
|
+
],
|
|
19
|
+
default: 'listFeeds',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
exports.artifactsFields = [
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Project',
|
|
25
|
+
name: 'project',
|
|
26
|
+
type: 'string',
|
|
27
|
+
default: '',
|
|
28
|
+
required: true,
|
|
29
|
+
displayOptions: {
|
|
30
|
+
show: {
|
|
31
|
+
resource: ['artifacts'],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Feed ID (or Name)',
|
|
37
|
+
name: 'feedId',
|
|
38
|
+
type: 'string',
|
|
39
|
+
default: '',
|
|
40
|
+
required: true,
|
|
41
|
+
displayOptions: {
|
|
42
|
+
show: {
|
|
43
|
+
resource: ['artifacts'],
|
|
44
|
+
operation: ['listPackages'],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.boardFields = exports.boardOperations = void 0;
|
|
4
|
+
exports.boardOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['boards'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{ name: 'List Boards', value: 'listBoards', action: 'List agile boards for a project' },
|
|
17
|
+
{ name: 'List Iterations (Sprints)', value: 'listIterations', action: 'List iteration paths (Sprints) for a team' },
|
|
18
|
+
{ name: 'List Board Columns', value: 'listColumns', action: 'List columns of a specific board' },
|
|
19
|
+
],
|
|
20
|
+
default: 'listBoards',
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
exports.boardFields = [
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Project',
|
|
26
|
+
name: 'project',
|
|
27
|
+
type: 'string',
|
|
28
|
+
default: '',
|
|
29
|
+
required: true,
|
|
30
|
+
displayOptions: {
|
|
31
|
+
show: {
|
|
32
|
+
resource: ['boards'],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Team URL Name / ID',
|
|
38
|
+
name: 'team',
|
|
39
|
+
type: 'string',
|
|
40
|
+
default: '',
|
|
41
|
+
required: true,
|
|
42
|
+
displayOptions: {
|
|
43
|
+
show: {
|
|
44
|
+
resource: ['boards'],
|
|
45
|
+
operation: ['listBoards', 'listIterations', 'listColumns'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
description: 'The team context name (usually matches project name + " Team")',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Board ID (or Name)',
|
|
52
|
+
name: 'boardId',
|
|
53
|
+
type: 'string',
|
|
54
|
+
default: 'Stories',
|
|
55
|
+
required: true,
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ['boards'],
|
|
59
|
+
operation: ['listColumns'],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
description: 'Name of the board (e.g. Epics, Features, Stories)',
|
|
63
|
+
},
|
|
64
|
+
];
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.gitFields = exports.gitOperations = void 0;
|
|
4
|
+
exports.gitOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['git'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{ name: 'List Repositories', value: 'listRepos', action: 'List all repositories' },
|
|
17
|
+
{ name: 'Get File Content', value: 'getFile', action: 'Get a file from repository' },
|
|
18
|
+
{ name: 'Create Branch', value: 'createBranch', action: 'Create a new branch' },
|
|
19
|
+
{ name: 'Push Commit', value: 'pushCommit', action: 'Push a commit to a branch' },
|
|
20
|
+
],
|
|
21
|
+
default: 'listRepos',
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
exports.gitFields = [
|
|
25
|
+
{
|
|
26
|
+
displayName: 'Project',
|
|
27
|
+
name: 'project',
|
|
28
|
+
type: 'string',
|
|
29
|
+
displayOptions: {
|
|
30
|
+
show: {
|
|
31
|
+
resource: ['git'],
|
|
32
|
+
operation: ['listRepos', 'getFile', 'createBranch', 'pushCommit'],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
default: '',
|
|
36
|
+
required: true,
|
|
37
|
+
description: 'The project name or ID. Ex: MyProject',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Repository ID',
|
|
41
|
+
name: 'repositoryId',
|
|
42
|
+
type: 'string',
|
|
43
|
+
displayOptions: {
|
|
44
|
+
show: {
|
|
45
|
+
resource: ['git'],
|
|
46
|
+
operation: ['getFile', 'createBranch', 'pushCommit'],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
default: '',
|
|
50
|
+
required: true,
|
|
51
|
+
description: 'The ID or name of the repository',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
displayName: 'File Path',
|
|
55
|
+
name: 'filePath',
|
|
56
|
+
type: 'string',
|
|
57
|
+
displayOptions: {
|
|
58
|
+
show: {
|
|
59
|
+
resource: ['git'],
|
|
60
|
+
operation: ['getFile'],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
default: '/',
|
|
64
|
+
required: true,
|
|
65
|
+
description: 'The path of the file to retrieve',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Branch Name',
|
|
69
|
+
name: 'branchName',
|
|
70
|
+
type: 'string',
|
|
71
|
+
default: '',
|
|
72
|
+
required: true,
|
|
73
|
+
displayOptions: {
|
|
74
|
+
show: {
|
|
75
|
+
resource: ['git'],
|
|
76
|
+
operation: ['createBranch', 'pushCommit'],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
description: 'Name of the branch (e.g. refs/heads/feature-1)',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Commit Message',
|
|
83
|
+
name: 'commitMessage',
|
|
84
|
+
type: 'string',
|
|
85
|
+
default: 'Update from n8n',
|
|
86
|
+
displayOptions: {
|
|
87
|
+
show: {
|
|
88
|
+
resource: ['git'],
|
|
89
|
+
operation: ['pushCommit'],
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
displayName: 'File Content',
|
|
95
|
+
name: 'fileContent',
|
|
96
|
+
type: 'string',
|
|
97
|
+
typeOptions: { alwaysOpenEditWindow: true },
|
|
98
|
+
default: '',
|
|
99
|
+
displayOptions: {
|
|
100
|
+
show: {
|
|
101
|
+
resource: ['git'],
|
|
102
|
+
operation: ['pushCommit'],
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
description: 'New content to write/push to the file',
|
|
106
|
+
},
|
|
107
|
+
];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pipelineFields = exports.pipelineOperations = void 0;
|
|
4
|
+
exports.pipelineOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['pipeline'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{ name: 'List Pipelines', value: 'list', action: 'List all pipelines' },
|
|
17
|
+
{ name: 'Run Pipeline', value: 'run', action: 'Run a pipeline (Build)' },
|
|
18
|
+
{ name: 'Get Build Logs', value: 'getLogs', action: 'Get logs of a specific run' },
|
|
19
|
+
{ name: 'Cancel Build Run', value: 'cancelRun', action: 'Cancel an active pipeline run' },
|
|
20
|
+
],
|
|
21
|
+
default: 'list',
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
exports.pipelineFields = [
|
|
25
|
+
{
|
|
26
|
+
displayName: 'Project',
|
|
27
|
+
name: 'project',
|
|
28
|
+
type: 'string',
|
|
29
|
+
displayOptions: {
|
|
30
|
+
show: {
|
|
31
|
+
resource: ['pipeline'],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
default: '',
|
|
35
|
+
required: true,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Pipeline ID',
|
|
39
|
+
name: 'pipelineId',
|
|
40
|
+
type: 'number',
|
|
41
|
+
displayOptions: {
|
|
42
|
+
show: {
|
|
43
|
+
resource: ['pipeline'],
|
|
44
|
+
operation: ['run', 'getLogs'],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
default: 0,
|
|
48
|
+
required: true,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Run ID',
|
|
52
|
+
name: 'runId',
|
|
53
|
+
type: 'number',
|
|
54
|
+
default: 0,
|
|
55
|
+
required: true,
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ['pipeline'],
|
|
59
|
+
operation: ['getLogs', 'cancelRun'],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
description: 'ID of the specific pipeline run/build',
|
|
63
|
+
},
|
|
64
|
+
];
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pullRequestFields = exports.pullRequestOperations = void 0;
|
|
4
|
+
exports.pullRequestOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['pullRequest'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{ name: 'Create', value: 'create', action: 'Create a pull request' },
|
|
17
|
+
{ name: 'Get', value: 'get', action: 'Get a pull request' },
|
|
18
|
+
{ name: 'Get Comments / Threads', value: 'getComments', action: 'Get thread/comments of a PR' },
|
|
19
|
+
{ name: 'List', value: 'list', action: 'List pull requests' },
|
|
20
|
+
{ name: 'Update', value: 'update', action: 'Update a pull request' },
|
|
21
|
+
],
|
|
22
|
+
default: 'list',
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
exports.pullRequestFields = [
|
|
26
|
+
{
|
|
27
|
+
displayName: 'Project',
|
|
28
|
+
name: 'project',
|
|
29
|
+
type: 'string',
|
|
30
|
+
displayOptions: {
|
|
31
|
+
show: {
|
|
32
|
+
resource: ['pullRequest'],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
default: '',
|
|
36
|
+
required: true,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Repository ID or Name',
|
|
40
|
+
name: 'repositoryId',
|
|
41
|
+
type: 'string',
|
|
42
|
+
displayOptions: {
|
|
43
|
+
show: {
|
|
44
|
+
resource: ['pullRequest'],
|
|
45
|
+
operation: ['create', 'get', 'getComments', 'list', 'update'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
default: '',
|
|
49
|
+
required: true,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Pull Request ID',
|
|
53
|
+
name: 'pullRequestId',
|
|
54
|
+
type: 'number',
|
|
55
|
+
displayOptions: {
|
|
56
|
+
show: {
|
|
57
|
+
resource: ['pullRequest'],
|
|
58
|
+
operation: ['get', 'getComments', 'update'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
default: 0,
|
|
62
|
+
required: true,
|
|
63
|
+
},
|
|
64
|
+
// ---- CREATE FIELDS ----
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Source Ref Name',
|
|
67
|
+
name: 'sourceRefName',
|
|
68
|
+
type: 'string',
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
resource: ['pullRequest'],
|
|
72
|
+
operation: ['create'],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
placeholder: 'refs/heads/my-feature',
|
|
76
|
+
description: 'The name of the source branch of the pull request.',
|
|
77
|
+
default: '',
|
|
78
|
+
required: true,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Target Ref Name',
|
|
82
|
+
name: 'targetRefName',
|
|
83
|
+
type: 'string',
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: {
|
|
86
|
+
resource: ['pullRequest'],
|
|
87
|
+
operation: ['create'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
placeholder: 'refs/heads/main',
|
|
91
|
+
description: 'The name of the target branch of the pull request.',
|
|
92
|
+
default: '',
|
|
93
|
+
required: true,
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Title',
|
|
97
|
+
name: 'title',
|
|
98
|
+
type: 'string',
|
|
99
|
+
displayOptions: {
|
|
100
|
+
show: {
|
|
101
|
+
resource: ['pullRequest'],
|
|
102
|
+
operation: ['create'],
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
default: '',
|
|
106
|
+
required: true,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
displayName: 'Additional Fields',
|
|
110
|
+
name: 'additionalFields',
|
|
111
|
+
type: 'collection',
|
|
112
|
+
placeholder: 'Add Field',
|
|
113
|
+
displayOptions: {
|
|
114
|
+
show: {
|
|
115
|
+
resource: ['pullRequest'],
|
|
116
|
+
operation: ['create'],
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
default: {},
|
|
120
|
+
options: [
|
|
121
|
+
{
|
|
122
|
+
displayName: 'Description',
|
|
123
|
+
name: 'description',
|
|
124
|
+
type: 'string',
|
|
125
|
+
typeOptions: {
|
|
126
|
+
alwaysOpenEditWindow: true,
|
|
127
|
+
},
|
|
128
|
+
default: '',
|
|
129
|
+
description: 'Description of the pull request',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
displayName: 'Is Draft',
|
|
133
|
+
name: 'isDraft',
|
|
134
|
+
type: 'boolean',
|
|
135
|
+
default: false,
|
|
136
|
+
description: 'Whether the pull request is a draft',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
displayName: 'Reviewers (Comma Separated IDs)',
|
|
140
|
+
name: 'reviewers',
|
|
141
|
+
type: 'string',
|
|
142
|
+
default: '',
|
|
143
|
+
description: 'Comma separated IDs of reviewers',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
displayName: 'Work Item IDs (Comma Separated)',
|
|
147
|
+
name: 'workItemIds',
|
|
148
|
+
type: 'string',
|
|
149
|
+
default: '',
|
|
150
|
+
description: 'Comma separated work item IDs or URLs to link to the pull request',
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
// ---- UPDATE FIELDS ----
|
|
155
|
+
{
|
|
156
|
+
displayName: 'Update Fields',
|
|
157
|
+
name: 'updateFields',
|
|
158
|
+
type: 'collection',
|
|
159
|
+
placeholder: 'Add Field',
|
|
160
|
+
displayOptions: {
|
|
161
|
+
show: {
|
|
162
|
+
resource: ['pullRequest'],
|
|
163
|
+
operation: ['update'],
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
default: {},
|
|
167
|
+
options: [
|
|
168
|
+
{
|
|
169
|
+
displayName: 'Title',
|
|
170
|
+
name: 'title',
|
|
171
|
+
type: 'string',
|
|
172
|
+
default: '',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
displayName: 'Description',
|
|
176
|
+
name: 'description',
|
|
177
|
+
type: 'string',
|
|
178
|
+
typeOptions: {
|
|
179
|
+
alwaysOpenEditWindow: true,
|
|
180
|
+
},
|
|
181
|
+
default: '',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
displayName: 'Status',
|
|
185
|
+
name: 'status',
|
|
186
|
+
type: 'options',
|
|
187
|
+
options: [
|
|
188
|
+
{ name: 'Active', value: 'active' },
|
|
189
|
+
{ name: 'Abandoned', value: 'abandoned' },
|
|
190
|
+
{ name: 'Completed', value: 'completed' },
|
|
191
|
+
],
|
|
192
|
+
default: 'active',
|
|
193
|
+
description: 'The status of the pull request',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
displayName: 'Merge Strategy (Completion Options)',
|
|
197
|
+
name: 'mergeStrategy',
|
|
198
|
+
type: 'options',
|
|
199
|
+
options: [
|
|
200
|
+
{ name: 'No Fast Forward', value: 'noFastForward' },
|
|
201
|
+
{ name: 'Rebase', value: 'rebase' },
|
|
202
|
+
{ name: 'Rebase Merge', value: 'rebaseMerge' },
|
|
203
|
+
{ name: 'Squash', value: 'squash' },
|
|
204
|
+
],
|
|
205
|
+
default: 'squash',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
displayName: 'Delete Source Branch (Completion Options)',
|
|
209
|
+
name: 'deleteSourceBranch',
|
|
210
|
+
type: 'boolean',
|
|
211
|
+
default: false,
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
displayName: 'Transition Work Items (Completion Options)',
|
|
215
|
+
name: 'transitionWorkItems',
|
|
216
|
+
type: 'boolean',
|
|
217
|
+
default: false,
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
displayName: 'Bypass Policy (Completion Options)',
|
|
221
|
+
name: 'bypassPolicy',
|
|
222
|
+
type: 'boolean',
|
|
223
|
+
default: false,
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
displayName: 'Bypass Reason (Completion Options)',
|
|
227
|
+
name: 'bypassReason',
|
|
228
|
+
type: 'string',
|
|
229
|
+
default: '',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
displayName: 'Merge Commit Message (Completion Options)',
|
|
233
|
+
name: 'mergeCommitMessage',
|
|
234
|
+
type: 'string',
|
|
235
|
+
default: '',
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
},
|
|
239
|
+
// ---- LIST FIELDS ----
|
|
240
|
+
{
|
|
241
|
+
displayName: 'List Options',
|
|
242
|
+
name: 'listOptions',
|
|
243
|
+
type: 'collection',
|
|
244
|
+
placeholder: 'Add Option',
|
|
245
|
+
displayOptions: {
|
|
246
|
+
show: {
|
|
247
|
+
resource: ['pullRequest'],
|
|
248
|
+
operation: ['list'],
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
default: {},
|
|
252
|
+
options: [
|
|
253
|
+
{
|
|
254
|
+
displayName: 'Status',
|
|
255
|
+
name: 'status',
|
|
256
|
+
type: 'options',
|
|
257
|
+
options: [
|
|
258
|
+
{ name: 'Active', value: 'active' },
|
|
259
|
+
{ name: 'Abandoned', value: 'abandoned' },
|
|
260
|
+
{ name: 'All', value: 'all' },
|
|
261
|
+
{ name: 'Completed', value: 'completed' },
|
|
262
|
+
{ name: 'Not Set', value: 'notSet' },
|
|
263
|
+
],
|
|
264
|
+
default: 'active',
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
displayName: 'Creator ID',
|
|
268
|
+
name: 'creatorId',
|
|
269
|
+
type: 'string',
|
|
270
|
+
default: '',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
displayName: 'Reviewer ID',
|
|
274
|
+
name: 'reviewerId',
|
|
275
|
+
type: 'string',
|
|
276
|
+
default: '',
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
displayName: 'Source Ref Name',
|
|
280
|
+
name: 'sourceRefName',
|
|
281
|
+
type: 'string',
|
|
282
|
+
default: '',
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
displayName: 'Target Ref Name',
|
|
286
|
+
name: 'targetRefName',
|
|
287
|
+
type: 'string',
|
|
288
|
+
default: '',
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
displayName: 'Top (Limit)',
|
|
292
|
+
name: 'top',
|
|
293
|
+
type: 'number',
|
|
294
|
+
default: 100,
|
|
295
|
+
},
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
];
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serviceHookFields = exports.serviceHookOperations = void 0;
|
|
4
|
+
exports.serviceHookOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['serviceHook'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{ name: 'List Subscriptions', value: 'list', action: 'List all service hook subscriptions in the organization/project' },
|
|
17
|
+
{ name: 'Create Subscription', value: 'create', action: 'Create a new webhook subscription' },
|
|
18
|
+
],
|
|
19
|
+
default: 'list',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
exports.serviceHookFields = [
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Project',
|
|
25
|
+
name: 'project',
|
|
26
|
+
type: 'string',
|
|
27
|
+
default: '',
|
|
28
|
+
required: true,
|
|
29
|
+
displayOptions: {
|
|
30
|
+
show: {
|
|
31
|
+
resource: ['serviceHook'],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
description: 'The name or ID of the Azure DevOps project to bind the hook (or leave specific for org scope issues)',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Event Type',
|
|
38
|
+
name: 'eventType',
|
|
39
|
+
type: 'options',
|
|
40
|
+
options: [
|
|
41
|
+
{ name: 'Build Completed', value: 'build.complete' },
|
|
42
|
+
{ name: 'Code Pushed', value: 'git.push' },
|
|
43
|
+
{ name: 'Pull Request Created', value: 'git.pullrequest.created' },
|
|
44
|
+
{ name: 'Pull Request Merged', value: 'git.pullrequest.merged' },
|
|
45
|
+
{ name: 'Work Item Created', value: 'workitem.created' },
|
|
46
|
+
{ name: 'Work Item Updated', value: 'workitem.updated' },
|
|
47
|
+
{ name: 'Release Created', value: 'ms.vss-release.release-created-event' }
|
|
48
|
+
],
|
|
49
|
+
default: 'build.complete',
|
|
50
|
+
required: true,
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['serviceHook'],
|
|
54
|
+
operation: ['create'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
description: 'The publisher event type to listen to',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: 'Consumer Destination URL (Webhook)',
|
|
61
|
+
name: 'consumerUrl',
|
|
62
|
+
type: 'string',
|
|
63
|
+
default: '',
|
|
64
|
+
required: true,
|
|
65
|
+
displayOptions: {
|
|
66
|
+
show: {
|
|
67
|
+
resource: ['serviceHook'],
|
|
68
|
+
operation: ['create'],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
description: 'The external URL (e.g., n8n Webhook URL) where Azure DevOps will send the payload',
|
|
72
|
+
},
|
|
73
|
+
];
|