---
id: change/al-go/2413
type: change
title: "#2413 Only enable automatic Copilot review triggers when opted in"
summary: 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.
tier: official
language: en
tags:
  - fix
  - main
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-10-21T00:48:36.872Z"
  flags: []
generated:
  at: "2026-10-21T00:19:55.996Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 959519dfe53da49b83bd5cf1f43eaa0be7ca5301
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2413
    title: "microsoft/AL-Go#2413: Only enable automatic Copilot review triggers when opted in"
    date: "2026-10-20"
    commit: 959519dfe53da49b83bd5cf1f43eaa0be7ca5301
    t: null
    quote: Automatic triggers in those raw files therefore activate workflows before review is enabled.
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2413
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2413
kind: pr
base_branch: main
major: null
merged_at: "2026-10-20T18:36:52Z"
author: aholstrup1
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 9
  additions: 164
  deletions: 19
  al: 6
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/.Modules/settings.schema.json
    status: modified
    reason: not-in-snapshot
  - path: Actions/CheckForUpdates/CheckForUpdates.HelperFunctions.ps1
    status: modified
    reason: not-in-snapshot
  - path: Templates/AppSource App/.github/workflows/CopilotPRReview.yaml
    status: modified
    reason: not-in-snapshot
  - path: Templates/AppSource App/.github/workflows/CopilotPRReviewRunner.yaml
    status: modified
    reason: not-in-snapshot
  - path: Templates/Per Tenant Extension/.github/workflows/CopilotPRReview.yaml
    status: modified
    reason: not-in-snapshot
  - path: Templates/Per Tenant Extension/.github/workflows/CopilotPRReviewRunner.yaml
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items: []
systems:
  - copilot
  - development
quote: Automatic triggers in those raw files therefore activate workflows before review is enabled.
joined_against:
  major: null
  commit: null
---

# #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.

[Pull request](https://github.com/microsoft/AL-Go/pull/2413) · 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? snapshot
- `Actions/CheckForUpdates/CheckForUpdates.HelperFunctions.ps1`: modified, not in the BC? snapshot
- `Templates/AppSource App/.github/workflows/CopilotPRReview.yaml`: modified, not in the BC? snapshot
- `Templates/AppSource App/.github/workflows/CopilotPRReviewRunner.yaml`: modified, not in the BC? snapshot
- `Templates/Per Tenant Extension/.github/workflows/CopilotPRReview.yaml`: modified, not in the BC? snapshot
- `Templates/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).
