Skip to content

[release/11.0] Fix multi-org GitHub App installation selection - #17441

Merged
missymessa merged 1 commit into
dotnet:release/11.0from
missymessa:missymessa/backport-pr17402-release-11.0
Aug 31, 2026
Merged

missymessa merged 1 commit into
dotnet:release/11.0from
missymessa:missymessa/backport-pr17402-release-11.0

Conversation

@missymessa

Copy link
Copy Markdown
Member

Backport of #17402.

The release branch still wraps the Invoke-RestMethod response with @(), which can retain a top-level installation array as one nested object. Explicitly enumerate each response so owner filtering selects the requested GitHub App installation.

Validation:

  • PowerShell Core syntax parsing passes
  • Windows PowerShell syntax parsing passes
  • git diff --check passes

Tracking: AB#11966

Backport of dotnet#17402.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: c08e3391-52d8-42e3-ad8c-ef2e5be92291
@missymessa
missymessa requested review from mmitche and a lite review from Copilot August 28, 2026 14:39

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

Backports the fix from #17402 to ensure GitHub App installation lookup works correctly when the App is installed in multiple organizations, by flattening paginated /app/installations responses before filtering by owner.

Changes:

  • Replace array concatenation with an explicit per-item enumeration into a List[object] to avoid retaining a page response as a single nested object.
  • Track per-page installation count explicitly and use it to drive pagination continuation logic.

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

@marcpopMSFT

Copy link
Copy Markdown
Member

SDK localization for 11 is blocked waiting on this fix. @missymessa can we merge?

@missymessa
missymessa merged commit 74d6085 into dotnet:release/11.0 Aug 31, 2026
12 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc2 milestone Sep 1, 2026
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.

4 participants