Skip to content

ADO connector: known issues queried at project scope instead of repository scope #177

@Malcolmnixon

Description

@Malcolmnixon

Summary

When using BuildMark with an Azure DevOps connector where the ADO project contains multiple repositories, the known-issues query returns all open work items across the entire project rather than scoping them to work items linked to the configured repository.

Environment

  • BuildMark version: 1.2.1
  • Connector: azure-devops

Steps to Reproduce

  1. Configure .buildmark.yaml\ with an Azure DevOps connector pointing to a project that contains multiple repositories/products:

\\yaml
connector:
type: azure-devops
azure-devops:
url: https://dev.azure.com/myorg
project: MyProject
repository: MyRepo
\\

  1. Run \dotnet buildmark --report report.md --build-version 1.0.0\

Expected Behaviour

Known issues should be scoped to work items that are linked to commits within the configured repository (\MyRepo). Work items from other repositories or products within \MyProject\ should not appear.

Actual Behaviour

The console reports a large number of known issues (e.g. hundreds) sourced from the entire \MyProject\ ADO project — including work items from completely unrelated repositories and products that predate the creation of the configured repository.

These known issues are then passed through the routing rules (e.g. \work-item-type: [Bug] → bugs-fixed) and appear in the generated report under sections such as ## Bugs Fixed, making it appear as though the repository fixed hundreds of bugs from other products.

The console output distinguishes \Bugs Fixed: 0\ (correct — no work items linked to commits in range) from \Known Issues: N\ (incorrect — project-wide rather than repository-scoped), but the report renders the known issues under the routed sections regardless.

Suggested Fix

The ADO known-issues query should be filtered to only return work items that are linked to commits within the configured repository. This could be achieved by:

  • Querying work items via the ADO commit→work-item link API scoped to the specific repository, or
  • Adding an optional \�rea-path\ filter to the \�zure-devops\ connector configuration to allow users to manually scope the query as a workaround.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions