#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.
- 3files
- 1AL files
- 0objects
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
- Fixes: #2387 [Bug]: DetermineDeploymentEnvironments ignores GitHub environments after the first 30 (no pagination) (open)
- Systems: platform
- From the description: “GitHub returns 30 environments by default, but deployment discovery previously fetched only one page.”
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).