@mcp-consultant-tools/azure-devops 26.0.0-beta.1 → 27.0.0-beta.1
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/build/AzureDevOpsService.d.ts +146 -543
- package/build/AzureDevOpsService.d.ts.map +1 -1
- package/build/AzureDevOpsService.js +203 -1189
- package/build/AzureDevOpsService.js.map +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +127 -850
- package/build/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -12,243 +12,145 @@ export interface AzureDevOpsConfig {
|
|
|
12
12
|
* - 'html': Convert Markdown to HTML before sending (for legacy orgs without Markdown preview)
|
|
13
13
|
*/
|
|
14
14
|
commentFormat?: 'markdown' | 'html';
|
|
15
|
-
|
|
16
|
-
enablePipelineUpsert?: boolean;
|
|
17
|
-
enableServiceConnUpsert?: boolean;
|
|
18
|
-
enableVariableGroupUpsert?: boolean;
|
|
19
|
-
enableAgentPoolUpsert?: boolean;
|
|
20
|
-
enableEnvironmentUpsert?: boolean;
|
|
21
|
-
enablePipelineDelete?: boolean;
|
|
22
|
-
enableServiceConnDelete?: boolean;
|
|
23
|
-
enableVariableGroupDelete?: boolean;
|
|
24
|
-
enableAgentPoolDisable?: boolean;
|
|
25
|
-
enableEnvironmentDelete?: boolean;
|
|
15
|
+
enablePullRequestWrite?: boolean;
|
|
26
16
|
}
|
|
27
|
-
export interface
|
|
28
|
-
|
|
17
|
+
export interface AdoApiCollectionResponse<T> {
|
|
18
|
+
value: T[];
|
|
19
|
+
count?: number;
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}
|
|
22
|
+
export interface Repository {
|
|
23
|
+
id: string;
|
|
29
24
|
name: string;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
queueStatus?: string;
|
|
33
|
-
type?: string;
|
|
34
|
-
quality?: string;
|
|
35
|
-
authoredBy?: {
|
|
36
|
-
displayName: string;
|
|
37
|
-
id: string;
|
|
38
|
-
};
|
|
39
|
-
createdDate?: string;
|
|
40
|
-
project?: {
|
|
41
|
-
id: string;
|
|
42
|
-
name: string;
|
|
43
|
-
};
|
|
44
|
-
repository?: {
|
|
25
|
+
url: string;
|
|
26
|
+
project: {
|
|
45
27
|
id: string;
|
|
46
28
|
name: string;
|
|
47
|
-
type: string;
|
|
48
29
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
variables?: Record<string, {
|
|
55
|
-
value: string;
|
|
56
|
-
isSecret?: boolean;
|
|
57
|
-
}>;
|
|
58
|
-
_links?: Record<string, {
|
|
59
|
-
href: string;
|
|
60
|
-
}>;
|
|
30
|
+
defaultBranch?: string;
|
|
31
|
+
size?: number;
|
|
32
|
+
remoteUrl?: string;
|
|
33
|
+
sshUrl?: string;
|
|
34
|
+
webUrl?: string;
|
|
61
35
|
}
|
|
62
|
-
export interface
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
startTime?: string;
|
|
69
|
-
finishTime?: string;
|
|
70
|
-
sourceBranch?: string;
|
|
71
|
-
sourceVersion?: string;
|
|
72
|
-
definition?: {
|
|
73
|
-
id: number;
|
|
74
|
-
name: string;
|
|
75
|
-
};
|
|
76
|
-
requestedBy?: {
|
|
36
|
+
export interface PullRequest {
|
|
37
|
+
pullRequestId: number;
|
|
38
|
+
title: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
status: 'active' | 'completed' | 'abandoned' | 'all';
|
|
41
|
+
createdBy: {
|
|
77
42
|
displayName: string;
|
|
43
|
+
id: string;
|
|
44
|
+
uniqueName: string;
|
|
78
45
|
};
|
|
79
|
-
|
|
46
|
+
creationDate: string;
|
|
47
|
+
closedDate?: string;
|
|
48
|
+
sourceRefName: string;
|
|
49
|
+
targetRefName: string;
|
|
50
|
+
mergeStatus?: string;
|
|
51
|
+
isDraft?: boolean;
|
|
52
|
+
reviewers?: PullRequestReviewer[];
|
|
53
|
+
labels?: {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
}[];
|
|
57
|
+
autoCompleteSetBy?: {
|
|
80
58
|
displayName: string;
|
|
59
|
+
id: string;
|
|
81
60
|
};
|
|
82
|
-
|
|
61
|
+
completionOptions?: any;
|
|
62
|
+
repository: {
|
|
83
63
|
id: string;
|
|
84
64
|
name: string;
|
|
85
65
|
};
|
|
86
|
-
|
|
87
|
-
reason?: string;
|
|
88
|
-
parameters?: string;
|
|
66
|
+
supportsIterations?: boolean;
|
|
89
67
|
_links?: Record<string, {
|
|
90
68
|
href: string;
|
|
91
69
|
}>;
|
|
92
70
|
}
|
|
93
|
-
export interface
|
|
94
|
-
id: string;
|
|
95
|
-
changeId: number;
|
|
96
|
-
lastChangedBy?: string;
|
|
97
|
-
lastChangedOn?: string;
|
|
98
|
-
records: TimelineRecord[];
|
|
99
|
-
}
|
|
100
|
-
export interface TimelineRecord {
|
|
71
|
+
export interface PullRequestReviewer {
|
|
101
72
|
id: string;
|
|
102
|
-
parentId?: string;
|
|
103
|
-
type: string;
|
|
104
|
-
name: string;
|
|
105
|
-
startTime?: string;
|
|
106
|
-
finishTime?: string;
|
|
107
|
-
state: string;
|
|
108
|
-
result?: string;
|
|
109
|
-
order?: number;
|
|
110
|
-
log?: {
|
|
111
|
-
id: number;
|
|
112
|
-
type: string;
|
|
113
|
-
url: string;
|
|
114
|
-
};
|
|
115
|
-
errorCount?: number;
|
|
116
|
-
warningCount?: number;
|
|
117
|
-
issues?: any[];
|
|
118
|
-
}
|
|
119
|
-
export interface ServiceConnection {
|
|
120
|
-
id: string;
|
|
121
|
-
name: string;
|
|
122
|
-
type: string;
|
|
123
|
-
url?: string;
|
|
124
|
-
description?: string;
|
|
125
|
-
authorization?: {
|
|
126
|
-
scheme: string;
|
|
127
|
-
parameters?: Record<string, string>;
|
|
128
|
-
};
|
|
129
|
-
isShared?: boolean;
|
|
130
|
-
isReady?: boolean;
|
|
131
|
-
owner?: string;
|
|
132
|
-
createdBy?: {
|
|
133
|
-
displayName: string;
|
|
134
|
-
id: string;
|
|
135
|
-
};
|
|
136
|
-
serviceEndpointProjectReferences?: Array<{
|
|
137
|
-
projectReference: {
|
|
138
|
-
id: string;
|
|
139
|
-
name: string;
|
|
140
|
-
};
|
|
141
|
-
name: string;
|
|
142
|
-
}>;
|
|
143
|
-
}
|
|
144
|
-
export interface ServiceConnectionType {
|
|
145
|
-
name: string;
|
|
146
73
|
displayName: string;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}>;
|
|
153
|
-
dataSources?: any[];
|
|
154
|
-
inputDescriptors?: any[];
|
|
74
|
+
uniqueName: string;
|
|
75
|
+
vote: number;
|
|
76
|
+
isRequired?: boolean;
|
|
77
|
+
hasDeclined?: boolean;
|
|
78
|
+
isFlagged?: boolean;
|
|
155
79
|
}
|
|
156
|
-
export interface
|
|
80
|
+
export interface PullRequestThread {
|
|
157
81
|
id: number;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
82
|
+
publishedDate: string;
|
|
83
|
+
lastUpdatedDate: string;
|
|
84
|
+
status: 'unknown' | 'active' | 'fixed' | 'wontFix' | 'closed' | 'byDesign' | 'pending';
|
|
85
|
+
threadContext?: {
|
|
86
|
+
filePath?: string;
|
|
87
|
+
leftFileStart?: {
|
|
88
|
+
line: number;
|
|
89
|
+
offset: number;
|
|
90
|
+
};
|
|
91
|
+
leftFileEnd?: {
|
|
92
|
+
line: number;
|
|
93
|
+
offset: number;
|
|
94
|
+
};
|
|
95
|
+
rightFileStart?: {
|
|
96
|
+
line: number;
|
|
97
|
+
offset: number;
|
|
98
|
+
};
|
|
99
|
+
rightFileEnd?: {
|
|
100
|
+
line: number;
|
|
101
|
+
offset: number;
|
|
102
|
+
};
|
|
175
103
|
};
|
|
176
|
-
|
|
104
|
+
comments: PullRequestComment[];
|
|
177
105
|
properties?: Record<string, any>;
|
|
106
|
+
isDeleted?: boolean;
|
|
178
107
|
}
|
|
179
|
-
export interface
|
|
108
|
+
export interface PullRequestComment {
|
|
180
109
|
id: number;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
osDescription?: string;
|
|
184
|
-
enabled?: boolean;
|
|
185
|
-
status?: string;
|
|
186
|
-
provisioningState?: string;
|
|
187
|
-
accessPoint?: string;
|
|
188
|
-
createdOn?: string;
|
|
189
|
-
maxParallelism?: number;
|
|
190
|
-
systemCapabilities?: Record<string, string>;
|
|
191
|
-
userCapabilities?: Record<string, string>;
|
|
192
|
-
assignedRequest?: any;
|
|
193
|
-
lastCompletedRequest?: any;
|
|
194
|
-
}
|
|
195
|
-
export interface Environment {
|
|
196
|
-
id: number;
|
|
197
|
-
name: string;
|
|
198
|
-
description?: string;
|
|
199
|
-
createdBy?: {
|
|
200
|
-
displayName: string;
|
|
201
|
-
id: string;
|
|
202
|
-
};
|
|
203
|
-
createdOn?: string;
|
|
204
|
-
lastModifiedBy?: {
|
|
110
|
+
parentCommentId?: number;
|
|
111
|
+
author: {
|
|
205
112
|
displayName: string;
|
|
206
113
|
id: string;
|
|
207
114
|
};
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
115
|
+
content: string;
|
|
116
|
+
publishedDate: string;
|
|
117
|
+
lastUpdatedDate?: string;
|
|
118
|
+
lastContentUpdatedDate?: string;
|
|
119
|
+
commentType: 'unknown' | 'text' | 'codeChange' | 'system';
|
|
120
|
+
usersLiked?: any[];
|
|
214
121
|
}
|
|
215
|
-
export interface
|
|
122
|
+
export interface PullRequestIteration {
|
|
216
123
|
id: number;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
id: number;
|
|
220
|
-
name: string;
|
|
221
|
-
};
|
|
222
|
-
owner?: {
|
|
124
|
+
description?: string;
|
|
125
|
+
author: {
|
|
223
126
|
displayName: string;
|
|
224
127
|
id: string;
|
|
225
128
|
};
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
queueTime?: string;
|
|
231
|
-
requestIdentifier?: string;
|
|
232
|
-
}
|
|
233
|
-
export interface Check {
|
|
234
|
-
id: number;
|
|
235
|
-
type: {
|
|
236
|
-
id: string;
|
|
237
|
-
name: string;
|
|
129
|
+
createdDate: string;
|
|
130
|
+
updatedDate?: string;
|
|
131
|
+
sourceRefCommit: {
|
|
132
|
+
commitId: string;
|
|
238
133
|
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
type: string;
|
|
242
|
-
id: string;
|
|
243
|
-
name?: string;
|
|
134
|
+
targetRefCommit: {
|
|
135
|
+
commitId: string;
|
|
244
136
|
};
|
|
245
|
-
|
|
246
|
-
|
|
137
|
+
commonRefCommit?: {
|
|
138
|
+
commitId: string;
|
|
139
|
+
};
|
|
140
|
+
hasMoreCommits?: boolean;
|
|
141
|
+
reason?: string;
|
|
247
142
|
}
|
|
248
|
-
export interface
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
143
|
+
export interface PullRequestChange {
|
|
144
|
+
changeId: number;
|
|
145
|
+
changeType: string;
|
|
146
|
+
item: {
|
|
147
|
+
objectId: string;
|
|
148
|
+
originalObjectId?: string;
|
|
149
|
+
gitObjectType: string;
|
|
150
|
+
commitId?: string;
|
|
151
|
+
path: string;
|
|
152
|
+
url?: string;
|
|
153
|
+
};
|
|
252
154
|
}
|
|
253
155
|
export declare class AzureDevOpsService {
|
|
254
156
|
private config;
|
|
@@ -437,369 +339,70 @@ export declare class AzureDevOpsService {
|
|
|
437
339
|
*/
|
|
438
340
|
getVariableGroup(project: string, groupId: number): Promise<any>;
|
|
439
341
|
/**
|
|
440
|
-
* List all
|
|
441
|
-
* @param project The project name
|
|
442
|
-
* @returns List of pipeline definitions
|
|
443
|
-
*/
|
|
444
|
-
listPipelineDefinitions(project: string): Promise<any>;
|
|
445
|
-
/**
|
|
446
|
-
* Get a specific pipeline definition with full details
|
|
447
|
-
* @param project The project name
|
|
448
|
-
* @param definitionId The pipeline definition ID
|
|
449
|
-
* @returns Full pipeline definition
|
|
450
|
-
*/
|
|
451
|
-
getPipelineDefinition(project: string, definitionId: number): Promise<any>;
|
|
452
|
-
/**
|
|
453
|
-
* Get the YAML content for a pipeline definition
|
|
454
|
-
* @param project The project name
|
|
455
|
-
* @param definitionId The pipeline definition ID
|
|
456
|
-
* @returns YAML content or location info for external repos
|
|
457
|
-
*/
|
|
458
|
-
getPipelineYaml(project: string, definitionId: number): Promise<any>;
|
|
459
|
-
/**
|
|
460
|
-
* List recent pipeline runs for a definition
|
|
342
|
+
* List all Git repositories in a project
|
|
461
343
|
* @param project The project name
|
|
462
|
-
* @
|
|
463
|
-
* @param top Maximum number of results (default: 10)
|
|
464
|
-
* @returns List of builds/runs
|
|
344
|
+
* @returns List of repositories with their IDs
|
|
465
345
|
*/
|
|
466
|
-
|
|
346
|
+
listRepositories(project: string): Promise<any>;
|
|
467
347
|
/**
|
|
468
|
-
*
|
|
348
|
+
* List pull requests in a repository
|
|
469
349
|
* @param project The project name
|
|
470
|
-
* @param
|
|
471
|
-
* @param
|
|
472
|
-
* @param
|
|
473
|
-
* @param
|
|
474
|
-
* @
|
|
350
|
+
* @param repositoryId Repository ID (GUID) or name
|
|
351
|
+
* @param status Filter by status: active, completed, abandoned, all (default: active)
|
|
352
|
+
* @param top Maximum results (default: 25)
|
|
353
|
+
* @param creatorId Filter by creator ID
|
|
354
|
+
* @param reviewerId Filter by reviewer ID
|
|
355
|
+
* @returns List of pull requests
|
|
475
356
|
*/
|
|
476
|
-
|
|
357
|
+
listPullRequests(project: string, repositoryId: string, status?: 'active' | 'completed' | 'abandoned' | 'all', top?: number, creatorId?: string, reviewerId?: string): Promise<any>;
|
|
477
358
|
/**
|
|
478
|
-
* Get
|
|
359
|
+
* Get details of a specific pull request
|
|
479
360
|
* @param project The project name
|
|
480
|
-
* @param
|
|
481
|
-
* @param
|
|
482
|
-
* @
|
|
483
|
-
* @returns Build timeline with records and summary stats
|
|
361
|
+
* @param repositoryId Repository ID (GUID) or name
|
|
362
|
+
* @param pullRequestId The PR ID
|
|
363
|
+
* @returns Pull request details with reviewers
|
|
484
364
|
*/
|
|
485
|
-
|
|
365
|
+
getPullRequest(project: string, repositoryId: string, pullRequestId: number): Promise<any>;
|
|
486
366
|
/**
|
|
487
|
-
*
|
|
488
|
-
* @param project The project name
|
|
489
|
-
* @param buildId The build ID
|
|
490
|
-
* @param logId Optional specific log ID
|
|
491
|
-
* @returns Build logs
|
|
492
|
-
*/
|
|
493
|
-
getBuildLogs(project: string, buildId: number, logId?: number): Promise<any>;
|
|
494
|
-
/**
|
|
495
|
-
* Create a new pipeline definition
|
|
496
|
-
* @param project The project name
|
|
497
|
-
* @param name Pipeline name
|
|
498
|
-
* @param repositoryId Repository ID
|
|
499
|
-
* @param yamlPath Path to YAML file in repository
|
|
500
|
-
* @param folder Optional folder path
|
|
501
|
-
* @returns Created pipeline definition
|
|
502
|
-
*/
|
|
503
|
-
createPipelineDefinition(project: string, name: string, repositoryId: string, yamlPath: string, folder?: string): Promise<any>;
|
|
504
|
-
/**
|
|
505
|
-
* Update a pipeline definition
|
|
506
|
-
* @param project The project name
|
|
507
|
-
* @param definitionId The pipeline definition ID
|
|
508
|
-
* @param updates Object with updated properties
|
|
509
|
-
* @returns Updated pipeline definition
|
|
510
|
-
*/
|
|
511
|
-
updatePipelineDefinition(project: string, definitionId: number, updates: {
|
|
512
|
-
name?: string;
|
|
513
|
-
path?: string;
|
|
514
|
-
queueStatus?: string;
|
|
515
|
-
triggers?: any[];
|
|
516
|
-
variables?: Record<string, {
|
|
517
|
-
value: string;
|
|
518
|
-
isSecret?: boolean;
|
|
519
|
-
allowOverride?: boolean;
|
|
520
|
-
}>;
|
|
521
|
-
}): Promise<any>;
|
|
522
|
-
/**
|
|
523
|
-
* Rename a pipeline definition
|
|
524
|
-
* @param project The project name
|
|
525
|
-
* @param definitionId The pipeline definition ID
|
|
526
|
-
* @param newName The new name
|
|
527
|
-
* @returns Updated pipeline definition
|
|
528
|
-
*/
|
|
529
|
-
renamePipelineDefinition(project: string, definitionId: number, newName: string): Promise<any>;
|
|
530
|
-
/**
|
|
531
|
-
* Queue a new build
|
|
532
|
-
* @param project The project name
|
|
533
|
-
* @param definitionId The pipeline definition ID
|
|
534
|
-
* @param branch Optional source branch
|
|
535
|
-
* @param variables Optional variables to pass
|
|
536
|
-
* @param parameters Optional pipeline parameters
|
|
537
|
-
* @returns Queued build
|
|
538
|
-
*/
|
|
539
|
-
queueBuild(project: string, definitionId: number, branch?: string, variables?: Record<string, string>, parameters?: Record<string, any>): Promise<any>;
|
|
540
|
-
/**
|
|
541
|
-
* Cancel a running build
|
|
542
|
-
* @param project The project name
|
|
543
|
-
* @param buildId The build ID
|
|
544
|
-
* @returns Cancelled build
|
|
545
|
-
*/
|
|
546
|
-
cancelBuild(project: string, buildId: number): Promise<any>;
|
|
547
|
-
/**
|
|
548
|
-
* Retry a failed build
|
|
549
|
-
* @param project The project name
|
|
550
|
-
* @param buildId The build ID to retry
|
|
551
|
-
* @returns New build
|
|
552
|
-
*/
|
|
553
|
-
retryBuild(project: string, buildId: number): Promise<any>;
|
|
554
|
-
/**
|
|
555
|
-
* Delete a pipeline definition
|
|
556
|
-
* @param project The project name
|
|
557
|
-
* @param definitionId The pipeline definition ID
|
|
558
|
-
* @returns Deletion confirmation
|
|
559
|
-
*/
|
|
560
|
-
deletePipelineDefinition(project: string, definitionId: number): Promise<any>;
|
|
561
|
-
/**
|
|
562
|
-
* List all service connections in a project
|
|
563
|
-
* @param project The project name
|
|
564
|
-
* @returns List of service connections
|
|
565
|
-
*/
|
|
566
|
-
listServiceConnections(project: string): Promise<any>;
|
|
567
|
-
/**
|
|
568
|
-
* Get a specific service connection
|
|
569
|
-
* @param project The project name
|
|
570
|
-
* @param connectionId The service connection ID
|
|
571
|
-
* @returns Service connection details
|
|
572
|
-
*/
|
|
573
|
-
getServiceConnection(project: string, connectionId: string): Promise<any>;
|
|
574
|
-
/**
|
|
575
|
-
* Get available service connection types
|
|
576
|
-
* @returns List of service connection types
|
|
577
|
-
*/
|
|
578
|
-
getServiceConnectionTypes(): Promise<any>;
|
|
579
|
-
/**
|
|
580
|
-
* Create a new service connection
|
|
581
|
-
* @param project The project name
|
|
582
|
-
* @param name Connection name
|
|
583
|
-
* @param type Connection type
|
|
584
|
-
* @param configuration Type-specific configuration
|
|
585
|
-
* @returns Created service connection
|
|
586
|
-
*/
|
|
587
|
-
createServiceConnection(project: string, name: string, type: string, configuration: {
|
|
588
|
-
url?: string;
|
|
589
|
-
description?: string;
|
|
590
|
-
authorization?: {
|
|
591
|
-
scheme: string;
|
|
592
|
-
parameters?: Record<string, string>;
|
|
593
|
-
};
|
|
594
|
-
data?: Record<string, string>;
|
|
595
|
-
}): Promise<any>;
|
|
596
|
-
/**
|
|
597
|
-
* Update a service connection
|
|
598
|
-
* @param project The project name
|
|
599
|
-
* @param connectionId The service connection ID
|
|
600
|
-
* @param updates Updated properties (not credentials)
|
|
601
|
-
* @returns Updated service connection
|
|
602
|
-
*/
|
|
603
|
-
updateServiceConnection(project: string, connectionId: string, updates: {
|
|
604
|
-
name?: string;
|
|
605
|
-
description?: string;
|
|
606
|
-
url?: string;
|
|
607
|
-
data?: Record<string, string>;
|
|
608
|
-
}): Promise<any>;
|
|
609
|
-
/**
|
|
610
|
-
* Share a service connection across projects
|
|
611
|
-
* @param connectionId The service connection ID
|
|
612
|
-
* @param projectIds Array of project IDs to share with
|
|
613
|
-
* @returns Updated service connection
|
|
614
|
-
*/
|
|
615
|
-
shareServiceConnection(connectionId: string, projectIds: string[]): Promise<any>;
|
|
616
|
-
/**
|
|
617
|
-
* Delete a service connection
|
|
618
|
-
* @param project The project name
|
|
619
|
-
* @param connectionId The service connection ID
|
|
620
|
-
* @returns Deletion confirmation
|
|
621
|
-
*/
|
|
622
|
-
deleteServiceConnection(project: string, connectionId: string): Promise<any>;
|
|
623
|
-
/**
|
|
624
|
-
* Create a new variable group
|
|
625
|
-
* @param project The project name
|
|
626
|
-
* @param name Variable group name
|
|
627
|
-
* @param description Optional description
|
|
628
|
-
* @param variables Initial variables
|
|
629
|
-
* @returns Created variable group
|
|
630
|
-
*/
|
|
631
|
-
createVariableGroup(project: string, name: string, description?: string, variables?: Record<string, {
|
|
632
|
-
value: string;
|
|
633
|
-
isSecret?: boolean;
|
|
634
|
-
}>): Promise<any>;
|
|
635
|
-
/**
|
|
636
|
-
* Update a variable group's metadata
|
|
637
|
-
* @param project The project name
|
|
638
|
-
* @param groupId The variable group ID
|
|
639
|
-
* @param updates Updated properties
|
|
640
|
-
* @returns Updated variable group
|
|
367
|
+
* Convert numeric vote to label
|
|
641
368
|
*/
|
|
642
|
-
|
|
643
|
-
name?: string;
|
|
644
|
-
description?: string;
|
|
645
|
-
}): Promise<any>;
|
|
369
|
+
private getVoteLabel;
|
|
646
370
|
/**
|
|
647
|
-
*
|
|
371
|
+
* Get commits in a pull request
|
|
648
372
|
* @param project The project name
|
|
649
|
-
* @param
|
|
650
|
-
* @param
|
|
651
|
-
* @
|
|
652
|
-
* @param isSecret Whether the variable is secret
|
|
653
|
-
* @returns Updated variable group
|
|
373
|
+
* @param repositoryId Repository ID (GUID) or name
|
|
374
|
+
* @param pullRequestId The PR ID
|
|
375
|
+
* @returns List of commits
|
|
654
376
|
*/
|
|
655
|
-
|
|
377
|
+
getPullRequestCommits(project: string, repositoryId: string, pullRequestId: number): Promise<any>;
|
|
656
378
|
/**
|
|
657
|
-
*
|
|
379
|
+
* Get threads/comments on a pull request
|
|
658
380
|
* @param project The project name
|
|
659
|
-
* @param
|
|
660
|
-
* @param
|
|
661
|
-
* @returns
|
|
381
|
+
* @param repositoryId Repository ID (GUID) or name
|
|
382
|
+
* @param pullRequestId The PR ID
|
|
383
|
+
* @returns List of discussion threads
|
|
662
384
|
*/
|
|
663
|
-
|
|
385
|
+
getPullRequestThreads(project: string, repositoryId: string, pullRequestId: number): Promise<any>;
|
|
664
386
|
/**
|
|
665
|
-
*
|
|
387
|
+
* Get file changes in a pull request
|
|
666
388
|
* @param project The project name
|
|
667
|
-
* @param
|
|
668
|
-
* @
|
|
389
|
+
* @param repositoryId Repository ID (GUID) or name
|
|
390
|
+
* @param pullRequestId The PR ID
|
|
391
|
+
* @param iterationId Iteration ID (default: latest)
|
|
392
|
+
* @returns List of changed files
|
|
669
393
|
*/
|
|
670
|
-
|
|
394
|
+
getPullRequestChanges(project: string, repositoryId: string, pullRequestId: number, iterationId?: number): Promise<any>;
|
|
671
395
|
/**
|
|
672
|
-
*
|
|
673
|
-
* @param poolType Optional filter: "automation" or "deployment"
|
|
674
|
-
* @returns List of agent pools
|
|
675
|
-
*/
|
|
676
|
-
listAgentPools(poolType?: string): Promise<any>;
|
|
677
|
-
/**
|
|
678
|
-
* Get a specific agent pool
|
|
679
|
-
* @param poolId The pool ID
|
|
680
|
-
* @returns Agent pool details
|
|
681
|
-
*/
|
|
682
|
-
getAgentPool(poolId: number): Promise<any>;
|
|
683
|
-
/**
|
|
684
|
-
* List agents in a pool
|
|
685
|
-
* @param poolId The pool ID
|
|
686
|
-
* @param includeCapabilities Include agent capabilities
|
|
687
|
-
* @returns List of agents
|
|
688
|
-
*/
|
|
689
|
-
listAgents(poolId: number, includeCapabilities?: boolean): Promise<any>;
|
|
690
|
-
/**
|
|
691
|
-
* Get a specific agent
|
|
692
|
-
* @param poolId The pool ID
|
|
693
|
-
* @param agentId The agent ID
|
|
694
|
-
* @returns Agent details
|
|
695
|
-
*/
|
|
696
|
-
getAgent(poolId: number, agentId: number): Promise<any>;
|
|
697
|
-
/**
|
|
698
|
-
* Update an agent pool
|
|
699
|
-
* @param poolId The pool ID
|
|
700
|
-
* @param updates Updated settings
|
|
701
|
-
* @returns Updated agent pool
|
|
702
|
-
*/
|
|
703
|
-
updateAgentPool(poolId: number, updates: {
|
|
704
|
-
autoProvision?: boolean;
|
|
705
|
-
autoUpdate?: boolean;
|
|
706
|
-
autoSize?: boolean;
|
|
707
|
-
targetSize?: number;
|
|
708
|
-
}): Promise<any>;
|
|
709
|
-
/**
|
|
710
|
-
* Enable a disabled agent
|
|
711
|
-
* @param poolId The pool ID
|
|
712
|
-
* @param agentId The agent ID
|
|
713
|
-
* @returns Updated agent
|
|
714
|
-
*/
|
|
715
|
-
enableAgent(poolId: number, agentId: number): Promise<any>;
|
|
716
|
-
/**
|
|
717
|
-
* Disable an agent
|
|
718
|
-
* @param poolId The pool ID
|
|
719
|
-
* @param agentId The agent ID
|
|
720
|
-
* @returns Updated agent
|
|
721
|
-
*/
|
|
722
|
-
disableAgent(poolId: number, agentId: number): Promise<any>;
|
|
723
|
-
/**
|
|
724
|
-
* List all environments in a project
|
|
725
|
-
* @param project The project name
|
|
726
|
-
* @returns List of environments
|
|
727
|
-
*/
|
|
728
|
-
listEnvironments(project: string): Promise<any>;
|
|
729
|
-
/**
|
|
730
|
-
* Get a specific environment
|
|
396
|
+
* Add a comment thread to a pull request
|
|
731
397
|
* @param project The project name
|
|
732
|
-
* @param
|
|
733
|
-
* @
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
*
|
|
738
|
-
* @
|
|
739
|
-
* @param environmentId The environment ID
|
|
740
|
-
* @param top Maximum number of results
|
|
741
|
-
* @returns Deployment records
|
|
742
|
-
*/
|
|
743
|
-
getEnvironmentDeployments(project: string, environmentId: number, top?: number): Promise<any>;
|
|
744
|
-
/**
|
|
745
|
-
* Create a new environment
|
|
746
|
-
* @param project The project name
|
|
747
|
-
* @param name Environment name
|
|
748
|
-
* @param description Optional description
|
|
749
|
-
* @returns Created environment
|
|
750
|
-
*/
|
|
751
|
-
createEnvironment(project: string, name: string, description?: string): Promise<any>;
|
|
752
|
-
/**
|
|
753
|
-
* Update an environment
|
|
754
|
-
* @param project The project name
|
|
755
|
-
* @param environmentId The environment ID
|
|
756
|
-
* @param updates Updated properties
|
|
757
|
-
* @returns Updated environment
|
|
758
|
-
*/
|
|
759
|
-
updateEnvironment(project: string, environmentId: number, updates: {
|
|
760
|
-
name?: string;
|
|
761
|
-
description?: string;
|
|
762
|
-
}): Promise<any>;
|
|
763
|
-
/**
|
|
764
|
-
* Delete an environment
|
|
765
|
-
* @param project The project name
|
|
766
|
-
* @param environmentId The environment ID
|
|
767
|
-
* @returns Deletion confirmation
|
|
768
|
-
*/
|
|
769
|
-
deleteEnvironment(project: string, environmentId: number): Promise<any>;
|
|
770
|
-
/**
|
|
771
|
-
* Get all checks configured for an environment
|
|
772
|
-
* @param project The project name
|
|
773
|
-
* @param environmentId The environment ID
|
|
774
|
-
* @returns List of check configurations
|
|
775
|
-
*/
|
|
776
|
-
getEnvironmentChecks(project: string, environmentId: number): Promise<any>;
|
|
777
|
-
/**
|
|
778
|
-
* Add a check to an environment
|
|
779
|
-
* @param project The project name
|
|
780
|
-
* @param environmentId The environment ID
|
|
781
|
-
* @param checkType The type of check (e.g., "Approval", "ExclusiveLock")
|
|
782
|
-
* @param configuration Check configuration
|
|
783
|
-
* @returns Created check
|
|
784
|
-
*/
|
|
785
|
-
addEnvironmentCheck(project: string, environmentId: number, checkType: string, configuration: any): Promise<any>;
|
|
786
|
-
/**
|
|
787
|
-
* Update an existing environment check
|
|
788
|
-
* @param project The project name
|
|
789
|
-
* @param checkId The check configuration ID
|
|
790
|
-
* @param updates Updated settings and/or timeout
|
|
791
|
-
* @returns Updated check
|
|
792
|
-
*/
|
|
793
|
-
updateEnvironmentCheck(project: string, checkId: number, updates: {
|
|
794
|
-
settings?: any;
|
|
795
|
-
timeout?: number;
|
|
796
|
-
}): Promise<any>;
|
|
797
|
-
/**
|
|
798
|
-
* Remove a check from an environment
|
|
799
|
-
* @param project The project name
|
|
800
|
-
* @param checkId The check configuration ID
|
|
801
|
-
* @returns Deletion confirmation
|
|
398
|
+
* @param repositoryId Repository ID (GUID) or name
|
|
399
|
+
* @param pullRequestId The PR ID
|
|
400
|
+
* @param content Comment content (markdown supported)
|
|
401
|
+
* @param filePath Optional file path for inline comment
|
|
402
|
+
* @param lineNumber Optional line number (right side) for inline comment
|
|
403
|
+
* @param status Thread status: active, fixed, wontFix, closed, byDesign, pending (default: active)
|
|
404
|
+
* @returns Created thread
|
|
802
405
|
*/
|
|
803
|
-
|
|
406
|
+
addPullRequestThread(project: string, repositoryId: string, pullRequestId: number, content: string, filePath?: string, lineNumber?: number, status?: 'active' | 'fixed' | 'wontFix' | 'closed' | 'byDesign' | 'pending'): Promise<any>;
|
|
804
407
|
}
|
|
805
408
|
//# sourceMappingURL=AzureDevOpsService.d.ts.map
|