Skip to content

Build Monitor: Create AzDO work items instead of GitHub issues for dnceng pipelines#6582

Open
missymessa wants to merge 1 commit into
mainfrom
feature/build-monitor-azdo-issues
Open

Build Monitor: Create AzDO work items instead of GitHub issues for dnceng pipelines#6582
missymessa wants to merge 1 commit into
mainfrom
feature/build-monitor-azdo-issues

Conversation

@missymessa
Copy link
Copy Markdown
Member

Summary

Updates the Build Monitor to create Azure DevOps work items instead of GitHub issues for dnceng first-responder pipelines.

Changes

  • BuildMonitorOptions.cs: Added AzDoIssuesOptions class with Project, AreaPath, WorkItemType, Tags, and UpdateExisting properties. Added AzDoIssues array to BuildMonitorOptions.
  • AzurePipelinesController.cs: Refactored ProcessBuildNotificationsAsync to check AzDO targets first, then fall back to GitHub. Added CreateOrUpdateAzDoWorkItemAsync for work item creation/update logic. Extracted CreateOrUpdateGitHubIssueAsync for cleaner separation.
  • settings.json: Migrated \dotnet-dnceng-first-responder\ from GitHub issues (dotnet/dnceng) to AzDO work items (internal/.NET Engineering Services/First Responders area path).
  • AzurePipelinesControllerAzDoTests.cs: 6 new tests covering AzDO work item creation, update-existing with comment, fallback to GitHub, priority over GitHub when both configured, and branch filtering.

Motivation

Resolves AB#8006 - Build Monitor issues for dnceng should open in AzDO instead of GitHub.

This aligns with the team's practice of tracking all operational work in AzDO rather than GitHub issues.

…ceng pipelines

Add AzDoIssues configuration to BuildMonitorOptions that allows build failure
notifications to create Azure DevOps work items instead of GitHub issues.

- Add AzDoIssuesOptions class with Project, AreaPath, WorkItemType, Tags, and
  UpdateExisting properties
- AzDO targets are checked first; if no AzDO match, falls back to GitHub issues
- UpdateExisting mode queries for open work items with matching title prefix
  and adds comments instead of creating duplicates
- Migrate dotnet-dnceng-first-responder target from GitHub (dotnet/dnceng) to
  AzDO (internal/.NET Engineering Services/First Responders)
- Add 6 new tests covering AzDO work item creation, update-existing, fallback
  to GitHub, and branch filtering

Resolves AB#8006

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants