Enable an agent-authored pull request policy for one repository

Open the repository's settings to select how reviews handle changes classified as agent-authored. Review the policy's scope and save it with a recent administrator sign-in.

Turn on the policy for a repository#

  1. Open Repositories and select the repository.
  2. Open Settings → Automation.
  3. Under Agent-authored pull requests, choose a Policy.
  4. Select Also cover agent-assisted pull requests to include pull requests where some commits carry an agent signal.
  5. Select Save policy.

The policy covers agent-authored pull requests and those with undetermined authorship. Also cover agent-assisted pull requests adds agent-assisted ones.

  • Off is the default. Reviews do not classify authorship.
  • Shadow records each review's authorship and what the policy would have changed, and changes nothing. Use it to see which pull requests the policy would cover before you turn it on. This setting is separate from the repository's Shadow mode, which keeps review results off GitHub.
  • On reviews every file of a covered pull request at standard depth or deeper and sensitive files in depth. If the repository's merge gate is enabled, every open supported finding blocks a covered pull request, whatever blocking severity the gate sets. Pull requests the policy does not cover keep the gate's severity.

A review follows the policy saved when it started. Saving a change does not alter reviews or gate decisions already recorded.

Search help

Tab to a result. Enter to open. Escape to close.