feat: add comment-on-work-item safe output tool#80
Open
jamesadevine wants to merge 1 commit intomainfrom
Open
Conversation
Add a new safe output tool that allows agents to comment on existing Azure DevOps work items. This is the ADO equivalent of gh-aw's add-comment tool. Features: - Agent provides work_item_id and body (markdown comment text) - Required 'target' field in frontmatter scopes which work items can be commented on: wildcard, specific ID(s), or area path prefix - max field (default: 1) limits comments per run - Area path targets validated via ADO API at Stage 2 - Compile-time validation ensures target is specified Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new comment-on-work-item safe output tool — the ADO equivalent of gh-aw's \�dd-comment. Agents can add comments to existing Azure DevOps work items via the safe outputs pipeline.
Changes
Design
Agent parameters
Frontmatter configuration (aligned with gh-aw's \�dd-comment)
\\yaml
safe-outputs:
comment-on-work-item:
max: 3 # default: 1
target: "area:4x4\QED" # required — see modes below
\\
Target modes (required, no default)
ADO API
\POST /_apis/wit/workItems/{id}/comments?api-version=7.1-preview.4\
Testing
All 367 tests pass (334 unit + 19 integration + 5 doc + 9 additional), 0 clippy errors.