#2413 Only enable automatic Copilot review triggers when opted in
Automatic Copilot review workflow triggers now activate only when explicitly opted in through settings, preventing unintended workflow runs from templates that bypass the updater's inclusion logic.
- 9files
- 6AL files
- 0objects
Pull request · merged into main on 2026-10-20 by aholstrup1 · 9 files (+164 -19), 6 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Copilot review workflows ship with only manual dispatch triggers by default
- The updater adds pull_request and workflow_run triggers only when CodeReviewAgent.enabled is true
- Templates prevent automatic reviews from activating in repositories using outdated updaters
- Settings schema and Copilot scenario documentation updated to reflect the opt-in requirement
- Comprehensive tests added to validate trigger configuration and workflow file handling
- Behaviour changes for users or extensions.
AL objects touched
Actions/.Modules/settings.schema.json: modified, not in the BC? snapshotActions/CheckForUpdates/CheckForUpdates.HelperFunctions.ps1: modified, not in the BC? snapshotTemplates/AppSource App/.github/workflows/CopilotPRReview.yaml: modified, not in the BC? snapshotTemplates/AppSource App/.github/workflows/CopilotPRReviewRunner.yaml: modified, not in the BC? snapshotTemplates/Per Tenant Extension/.github/workflows/CopilotPRReview.yaml: modified, not in the BC? snapshotTemplates/Per Tenant Extension/.github/workflows/CopilotPRReviewRunner.yaml: modified, not in the BC? snapshot
Context
- Systems: copilot, development
- From the description: “Automatic triggers in those raw files therefore activate workflows before review is enabled.”
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).