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