Skip to content

Add ADO team project option to inventory report command#1560

Open
leafuk wants to merge 3 commits into
github:mainfrom
leafuk:filter-inventory-report-by-team
Open

Add ADO team project option to inventory report command#1560
leafuk wants to merge 3 commits into
github:mainfrom
leafuk:filter-inventory-report-by-team

Conversation

@leafuk
Copy link
Copy Markdown

@leafuk leafuk commented May 27, 2026

  • Did you write/update appropriate tests
  • Release notes updated (if appropriate)
  • Appropriate logging output
  • Issue linked
  • Docs updated (or issue created)
  • New package licenses are added to ThirdPartyNotices.txt (if applicable)

Resolves issue: #1545 - New Feature : Add Team Project Filtering to Inventory Report Command

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 27, 2026

Unit Test Results

    1 files      1 suites   25s ⏱️
1 108 tests 1 108 ✅ 0 💤 0 ❌
1 109 runs  1 109 ✅ 0 💤 0 ❌

Results for commit 1f9f4a1.

♻️ This comment has been updated with latest results.

@leafuk leafuk changed the title Add ADO team project option to inventory report command and tests Add ADO team project option to inventory report command May 27, 2026
@brianaj brianaj requested a review from Copilot May 28, 2026 22:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new --ado-team-project option to the ado2gh inventory-report command so users can scope the generated CSV reports to a single Azure DevOps team project, mirroring the existing filter support in generate-script.

Changes:

  • Adds AdoTeamProject arg/option to InventoryReportCommand and InventoryReportCommandArgs.
  • Wires the value into AdoInspectorService.TeamProjectFilter in InventoryReportCommandHandler.
  • Adds tests and a release note entry.
Show a summary per file
File Description
src/ado2gh/Commands/InventoryReport/InventoryReportCommand.cs Registers the new --ado-team-project option with description.
src/ado2gh/Commands/InventoryReport/InventoryReportCommandArgs.cs Adds AdoTeamProject property.
src/ado2gh/Commands/InventoryReport/InventoryReportCommandHandler.cs Sets TeamProjectFilter on the inspector service.
src/OctoshiftCLI.Tests/ado2gh/Commands/InventoryReport/InventoryReportCommandTests.cs Asserts the new option is registered.
src/OctoshiftCLI.Tests/ado2gh/Commands/InventoryReport/InventoryReportCommandHandlerTests.cs Adds tests for filter being null and being set.
RELEASENOTES.md User-facing release note for the new option.

Copilot's findings

  • Files reviewed: 6/6 changed files
  • Comments generated: 1

Comment thread src/ado2gh/Commands/InventoryReport/InventoryReportCommand.cs
@brianaj
Copy link
Copy Markdown
Collaborator

brianaj commented May 28, 2026

@leafuk can you address pr comment and resolve merge conflicts 👍🏾

@github-actions
Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
gei 81% 73% 608
Octoshift 80% 70% 1974
gl2gh 77% 69% 413
ado2gh 71% 69% 747
bbs2gh 83% 78% 667
Summary 79% (8814 / 11176) 71% (2196 / 3075) 4409

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.

3 participants