Skip to content

Add functionality to link artifacts to work items #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 12, 2025

Conversation

polatengin
Copy link
Contributor

Adds a new wit_add_artifact_link tool to enable linking work items to repository artifacts (branches, commits, pull requests).

🔧 Core Implementation

Added wit_add_artifact_link tool in workitems.ts

📚 Documentation

Updated EXAMPLES.md with new "Adding Artifact Links" section

✅ Testing

Added test coverage in workitems.test.ts

GitHub issue number

#279

Associated Risks

None

PR Checklist

  • I have read the contribution guidelines
  • I have read the code of conduct guidelines
  • Title of the pull request is clear and informative.
  • 👌 Code hygiene
  • 🔭 Telemetry added, updated, or N/A
  • 📄 Documentation added, updated, or N/A
  • 🛡️ Automated tests added, or N/A

🧪 How did you test it?

Run npm run test , npm run build , npm run validate-tools

@polatengin polatengin requested a review from a team as a code owner July 31, 2025 21:31
@codecov-commenter
Copy link

codecov-commenter commented Jul 31, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 22 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@fb99215). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/tools/workitems.ts 33.33% 19 Missing and 3 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #377   +/-   ##
=======================================
  Coverage        ?   91.52%           
=======================================
  Files           ?       13           
  Lines           ?      838           
  Branches        ?      142           
=======================================
  Hits            ?      767           
  Misses          ?       40           
  Partials        ?       31           
Flag Coverage Δ
unittests 91.52% <33.33%> (?)

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.

Copy link
Contributor

@danhellem danhellem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My main comment on this is that the user is going to need to know what the format of the artifact link is. And of course, each type is different. I don't know if there is a good way around this or not. I was hoping we could send the type and then some identifiers to build the uri accordingly. I am okay with giving this a try to start to see how to goes.

@danhellem danhellem linked an issue Aug 1, 2025 that may be closed by this pull request
@polatengin polatengin self-assigned this Aug 4, 2025
@danhellem danhellem merged commit 89474a3 into microsoft:main Aug 12, 2025
4 checks passed
qike-ms pushed a commit to qike-ms/azure-devops-mcp that referenced this pull request Aug 12, 2025
Adds a new `wit_add_artifact_link` tool to enable linking work items to
repository artifacts (`branches`, `commits`, `pull requests`).

## 🔧 Core Implementation

Added `wit_add_artifact_link` tool in
[workitems.ts](https://vscode.dev/github/microsoft/azure-devops-mcp/blob/main/src/tools/workitems.ts)

## 📚 Documentation

Updated
[EXAMPLES.md](https://vscode.dev/github/microsoft/azure-devops-mcp/blob/main/docs/EXAMPLES.md)
with new "Adding Artifact Links" section

## ✅ Testing

Added test coverage in
[workitems.test.ts](https://vscode.dev/github/microsoft/azure-devops-mcp/blob/main/test/src/tools/workitems.test.ts)

## GitHub issue number

microsoft#279 

## **Associated Risks**

None

## ✅ **PR Checklist**

- [x] **I have read the [contribution
guidelines](https://github.com/microsoft/azure-devops-mcp/blob/main/CONTRIBUTING.md)**
- [x] **I have read the [code of conduct
guidelines](https://github.com/microsoft/azure-devops-mcp/blob/main/CODE_OF_CONDUCT.md)**
- [x] Title of the pull request is clear and informative.
- [x] 👌 Code hygiene
- [x] 🔭 Telemetry added, updated, or N/A
- [x] 📄 Documentation added, updated, or N/A
- [x] 🛡️ Automated tests added, or N/A

## 🧪 **How did you test it?**

Run `npm run test` , `npm run build` , `npm run validate-tools`

---------

Co-authored-by: Dan Hellem <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Support for Azure DevOps Work Item Artifact Links
3 participants