code change · fixPlatform, DevOps & Performanceofficial - Microsoftreviewed - checked by Opus

#2396 Fix deployment environment discovery pagination

Deployment environment discovery now fetches all pages of environments from GitHub instead of only the first page, ensuring CI/CD includes all available deployment targets.

Pull request · merged into main on 2026-10-09 by aholstrup1 · 3 files (+118 -14), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Fetches environments in pages of 100 until a page contains fewer results
  • Retains full environment metadata for branch-policy filtering across all pages
  • Handles edge case where environment count is exact multiple of 100
  • Propagates failures on subsequent pages to prevent incomplete deployment selection
  • Covers regression scenarios including empty results, page boundaries, and second-page branch policies
  • Behaviour changes for users or extensions.

AL objects touched

  • Actions/DetermineDeploymentEnvironments/DetermineDeploymentEnvironments.ps1: modified, not in the BC? snapshot

Context

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).