Skip to content

Review settings

Documentation Index

Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt

Use this file to discover all available pages before exploring further.

Review Settings controls what Sourcery posts on a pull request and which pull requests it reviews. It sets the defaults for every repository, and Repo settings overrides them for one.

Enable Sourcery on pull requests is the top-level switch. Turn it off and Sourcery posts nothing on a repository’s pull requests. The rest are independent of each other.

ToggleWhat it posts
Enable AI review commentsThe inline comments and the review body.
Enable pull request summaryThe summary in the pull request description.
Enable review guideThe reviewer’s guide comment.
Enable sequence diagramsSequence diagrams in the reviewer’s guide.
Enable tips and commandsThe tips comment that lists chat commands.

Filters narrow which pull requests Sourcery reviews. An empty filter adds no restriction of its own, so Sourcery applies its default behavior.

FilterWhat it does
Ignore title keywordsSkips a pull request whose title contains any listed keyword.
LabelsAn allowlist. When set, Sourcery reviews only pull requests carrying one of the labels.
Base branchesAn allowlist of regular expressions matched against the base branch.
Review draft pull requestsTurns on reviews for drafts, which are skipped by default.
Path FiltersA single glob list on the General tab that excludes matching files from the reviewed diff.

Sourcery writes reviews in English by default, but it can write in many others. The language applies to the summary, the reviewer’s guide, and the inline comments.

Pick a language from the Select language dropdown on the General tab. The change applies to reviews from then on. Open the dropdown for the current list.

Settings apply at two scopes. Organization defaults cover every repository, and a repository can override them.

A repository follows the organization defaults while its Use Organization Settings toggle is on. Turn the toggle off to edit that repository on its own. Turning it back on and applying restores the organization defaults and discards the repository’s own settings. There is no separate revert action.

  1. Open the repository's settings

    Open Repo settings and pick the repository you want to change.

  2. Turn off Use Organization Settings

    The form unlocks, pre-filled with the organization defaults as a starting point.

  3. Edit and apply

    Change the settings for this repository and apply. If you change your mind later, turn Use Organization Settings back on and apply to go back to the organization defaults.