Skip to content

Add 'has dependent' and 'dependent on' link types#930

Merged
danhellem merged 2 commits intomicrosoft:mainfrom
jevansaks:add-dependent-link-types
Mar 2, 2026
Merged

Add 'has dependent' and 'dependent on' link types#930
danhellem merged 2 commits intomicrosoft:mainfrom
jevansaks:add-dependent-link-types

Conversation

@jevansaks
Copy link
Member

Summary

Adds support for the CMMI "Has Dependent" (Microsoft.VSTS.Common.Dependent-Forward) and "Dependent On" (Microsoft.VSTS.Common.Dependent-Reverse) link types to the work_items_link and work_item_unlink tools.

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 to getLinkTypeFromName(), and added them to the type enum for both work_items_link and work_item_unlink tools.
  • test/src/tools/work-items.test.ts: Updated test coverage to include the new link types.

Testing

  • All 101 existing tests pass
  • Type checking passes (tsc --noEmit)
  • Lint/format passes (via lint-staged on commit)

Fixes #929

…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>
@jevansaks jevansaks requested a review from a team as a code owner February 25, 2026 19:06
@codecov-commenter
Copy link

codecov-commenter commented Feb 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@f1243bc). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #930   +/-   ##
=======================================
  Coverage        ?   93.84%           
=======================================
  Files           ?       16           
  Lines           ?     1577           
  Branches        ?      330           
=======================================
  Hits            ?     1480           
  Misses          ?       23           
  Partials        ?       74           
Flag Coverage Δ
unittests 93.84% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jevansaks
Copy link
Member Author

Copilot CLI created this change, but I tested it locally with this MCP config and it worked to create these link types.

   "ado": {
     "type": "stdio",
     "command": "node",
     "args": ["C:\\repos\\azure-devops-mcp\\dist\\index.js", "microsoft"],
     "env": {
       "LOG_LEVEL": "debug"
     }
   }

@jevansaks
Copy link
Member Author

jevansaks commented Feb 26, 2026

@danhellem could you take a look at this PR?

@danhellem
Copy link
Contributor

@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

@danhellem danhellem self-assigned this Feb 26, 2026
@danhellem danhellem added the Needs Review 👓 needs review by the product team label Feb 26, 2026
@jevansaks
Copy link
Member Author

@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.

@danhellem danhellem merged commit 20d7a8a into microsoft:main Mar 2, 2026
4 checks passed
danhellem added a commit that referenced this pull request Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review 👓 needs review by the product team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

work_items_link tool doesn't support custom/CMMI link types (e.g. Has Dependent)

3 participants