Skip to content

Commit 5959ecb

Browse files
waleedlatif1claude
andcommitted
azure_devops: pin add_comment to documented api-version 7.0-preview.3
Microsoft's Add Comments docs only publish 7.0-preview.3 (the 7.2 view falls back to the 7.0 page). Get Comments stays on the documented 7.2-preview.4. Matches what's strictly in the Azure DevOps REST API reference rather than relying on undocumented version behavior. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 41b172f commit 5959ecb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/tools/azure_devops/add_comment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const addCommentTool: ToolConfig<AddCommentParams, AddCommentResponse> =
5151
const url = new URL(
5252
`https://dev.azure.com/${params.organization.trim()}/${params.project.trim()}/_apis/wit/workitems/${Number(params.workItemId)}/comments`
5353
)
54-
url.searchParams.set('api-version', '7.2-preview.4')
54+
url.searchParams.set('api-version', '7.0-preview.3')
5555
return url.toString()
5656
},
5757
method: 'POST',

apps/sim/tools/azure_devops/azure-devops.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ describe('Azure DevOps request builders', () => {
420420
} satisfies AddCommentParams
421421

422422
expect(buildUrl(addCommentTool, addParams)).toBe(
423-
'https://dev.azure.com/contoso/Fabrikam/_apis/wit/workitems/101/comments?api-version=7.2-preview.4'
423+
'https://dev.azure.com/contoso/Fabrikam/_apis/wit/workitems/101/comments?api-version=7.0-preview.3'
424424
)
425425
expect(buildBody(addCommentTool, addParams)).toEqual({
426426
text: 'SimIntegrationTest markdown comment',

0 commit comments

Comments
 (0)