Add 'has dependent' and 'dependent on' link types#930
Add 'has dependent' and 'dependent on' link types#930danhellem merged 2 commits intomicrosoft:mainfrom
Conversation
…and work_item_unlink tools Add support for the CMMI 'Has Dependent' (Microsoft.VSTS.Common.Dependent-Forward) and 'Dependent On' (Microsoft.VSTS.Common.Dependent-Reverse) link types, which are distinct from the existing 'Successor'/'Predecessor' (System.LinkTypes.Dependency) link types. Fixes microsoft#929 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #930 +/- ##
=======================================
Coverage ? 93.84%
=======================================
Files ? 16
Lines ? 1577
Branches ? 330
=======================================
Hits ? 1480
Misses ? 23
Partials ? 74
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Copilot CLI created this change, but I tested it locally with this MCP config and it worked to create these link types. |
|
@danhellem could you take a look at this PR? |
|
@jevansaks per contribution guidelines, you need to wait for us to review the Issue before creating a PR. That said, this is a pretty simple PR. So will take a look. But in the future, please follow the guidelines |
Shoot, sorry about that! Thanks for considering. |
Summary
Adds support for the CMMI "Has Dependent" (
Microsoft.VSTS.Common.Dependent-Forward) and "Dependent On" (Microsoft.VSTS.Common.Dependent-Reverse) link types to thework_items_linkandwork_item_unlinktools.These are distinct from the existing "Successor"/"Predecessor" (
System.LinkTypes.Dependency) link types and are used in ADO projects that use the CMMI process template.Changes
src/tools/work-items.ts: Added"has dependent"and"dependent on"cases togetLinkTypeFromName(), and added them to thetypeenum for bothwork_items_linkandwork_item_unlinktools.test/src/tools/work-items.test.ts: Updated test coverage to include the new link types.Testing
tsc --noEmit)Fixes #929