Skip to content

Add the ability to compare branches #1470

Description

@dbollish-stellar

Summary

Add a tool to repository module that integrates with Azure DevOps APIs to enable comparison of branches

Tools

Develop the following tools with full parameter support, including optional ones:

compare_branches: Search Azure DevOps Wikis for relevant content.

Endpoint: GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/diffs/commits?baseVersion={base}&baseVersionType=branch&targetVersion={target}&targetVersionType=branch&api-version=7.1

Rules

  1. Adhere strictly to existing project standards and coding conventions.
  2. Ensure each tool exposes all API parameters (required and optional).
  3. Use the official Azure DevOps Node API to interact with the APIs.

Special treat

If you follow the rules, you'll get candy!

#Existing Example
This project implements a similar functionality to compare_branches as can be done on the ADO web UI.
I intend to use this to generate release notes and get a definitive list of the differences between the main branch and a release branch.
https://github.com/Elad-Health/azure-devops-mcp/blob/main/src/tools/git.ts

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions