Skip to content

[release/8.0] Fix OneLoc GitHub App installation selection - #17313

Merged
missymessa merged 1 commit into
dotnet:release/8.0from
missymessa:missymessa/backport-oneloc-installation-selection-8.0
Aug 11, 2026
Merged

missymessa merged 1 commit into
dotnet:release/8.0from
missymessa:missymessa/backport-oneloc-installation-selection-8.0

Conversation

@missymessa

Copy link
Copy Markdown
Member

Backport of #17312 to release/8.0.

The GitHub App helper was added to this branch in #17298 and contains the same multi-installation selection bug. This fix flattens the installations response, requires exactly one owner match, and logs the selected installation.

Validation:

  • PowerShell syntax parsing passes
  • mocked response with Microsoft first selects dotnet correctly
  • mocked response still selects Microsoft correctly
  • git diff --check passes

Tracking: https://dev.azure.com/dnceng/internal/_workitems/edit/11966

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: f12710df-91d5-49e4-b327-337932478b0b
Copilot AI lite review requested due to automatic review settings August 11, 2026 14:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR backports the OneLoc GitHub App installation selection fix to release/8.0, ensuring the helper script reliably selects the correct installation when the App is installed for multiple owners.

Changes:

  • Avoids PowerShell’s nested-array behavior by capturing the REST response before wrapping it, flattening installation results across pages.
  • Requires exactly one installation match for the requested $InstallationOwner, failing with a clear error otherwise.
  • Logs the selected installation ID and owner to aid troubleshooting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@missymessa
missymessa enabled auto-merge (squash) August 11, 2026 14:18
@missymessa
missymessa merged commit 7945b1b into dotnet:release/8.0 Aug 11, 2026
10 of 13 checks passed
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