@azure-devops/mcp 2.7.0-nightly.20260506 → 2.7.0-nightly.20260508
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/dist/tools/repositories.js +5 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -303,11 +303,12 @@ function configureRepoTools(server, tokenProvider, connectionProvider, userAgent
|
|
|
303
303
|
.enum(getEnumKeys(GitPullRequestMergeStrategy))
|
|
304
304
|
.optional()
|
|
305
305
|
.describe("The merge strategy to use when the pull request autocompletes. Defaults to 'NoFastForward'."),
|
|
306
|
+
mergeCommitMessage: z.string().optional().describe("Commit message to use when the pull request is completed."),
|
|
306
307
|
deleteSourceBranch: z.boolean().optional().default(false).describe("Whether to delete the source branch when the pull request autocompletes. Defaults to false."),
|
|
307
308
|
transitionWorkItems: z.boolean().optional().default(true).describe("Whether to transition associated work items to the next state when the pull request autocompletes. Defaults to true."),
|
|
308
309
|
bypassReason: z.string().optional().describe("Reason for bypassing branch policies. When provided, branch policies will be automatically bypassed during autocompletion."),
|
|
309
310
|
labels: z.array(z.string()).optional().describe("Array of label names to replace existing labels on the pull request. This will remove all current labels and add the specified ones."),
|
|
310
|
-
}, async ({ repositoryId, pullRequestId, project, title, description, isDraft, targetRefName, status, autoComplete, mergeStrategy, deleteSourceBranch, transitionWorkItems, bypassReason, labels, }) => {
|
|
311
|
+
}, async ({ repositoryId, pullRequestId, project, title, description, isDraft, targetRefName, status, autoComplete, mergeStrategy, mergeCommitMessage, deleteSourceBranch, transitionWorkItems, bypassReason, labels, }) => {
|
|
311
312
|
try {
|
|
312
313
|
const connection = await connectionProvider();
|
|
313
314
|
const gitApi = await connection.getGitApi();
|
|
@@ -337,6 +338,9 @@ function configureRepoTools(server, tokenProvider, connectionProvider, userAgent
|
|
|
337
338
|
if (mergeStrategy) {
|
|
338
339
|
completionOptions.mergeStrategy = GitPullRequestMergeStrategy[mergeStrategy];
|
|
339
340
|
}
|
|
341
|
+
if (mergeCommitMessage) {
|
|
342
|
+
completionOptions.mergeCommitMessage = mergeCommitMessage;
|
|
343
|
+
}
|
|
340
344
|
if (bypassReason) {
|
|
341
345
|
completionOptions.bypassReason = bypassReason;
|
|
342
346
|
}
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = "2.7.0-nightly.
|
|
1
|
+
export const packageVersion = "2.7.0-nightly.20260508";
|