conventionalcomments.iogithub ↗LanguageEN/FRBring it to your team

docs / adoption

Adoption: assist → enforce

The safest way to introduce a convention is to roll it out gradually: help first, then — if the team wants it — refuse non-compliant comments on one pilot repository before doing so everywhere. Both modes run in the extension alone. Neither one touches your platform's merge rules: the extension reports unresolved blocking threads and never blocks a merge. The Enforce page says exactly what the stricter mode does and does not do.

The rollout sequence

Everything starts with the extension in each reviewer's browser. The installation page covers one machine, step by step; to roll it out to a whole team at once, see deploying it across an organization. Once you authorize your review domain, the extension runs in assist, the default mode, unless a configuration says otherwise.

from day oneassistInstall the extension and let people use it. Nothing is blocked and nothing is published. Nothing is measured centrally either, unless your organization has explicitly enabled telemetry.
when the team is readyenforce, one pilotOn a single repository, the extension refuses to send a comment that does not follow the convention. Every other repository stays in assist.
once the pilot has proved successfulenforce, everywhereMove the mode to the organization configuration, so that it applies to every repository that does not set its own.
ModeWhat the extension doesCan it stop a comment from being sent?
assistHelps reviewers write compliant comments, reports diagnostics as they type, and counts unresolved blocking threads in a banner on the pull request.No.
enforceEverything assist does.Yes, when the comment is not compliant and the configuration could be read.

No mode blocks a merge. Because both modes depend only on the extension, moving between them is a configuration change: there is no separate infrastructure to deploy, restart, or remove. Earlier versions had a warn mode between the two; it behaved exactly like assist and is retired. A configuration that still says "warn" is read as "assist", with a notice asking you to replace it. To switch the extension off for a repository or an organization, the configuration also accepts mode: off.

Tighten the rules while you are still in assist

A configuration change applies to pull requests that are already open. Enabling a blocking label, or raising a severity, can make a comment non-compliant after its author wrote it in good faith — and can turn threads blocking on every open pull request at once. So change the rules while nothing is refused: tighten them in assist, watch what the status pill and the banner report, and only then switch to enforce.

One thing to prepare before enforce

Write the rollback procedure, and name the person who will run it. It must include the order of the operations and the list of repositories that write "mode": "enforce" in their own file: the organization configuration does not override them, so each one has to be changed by hand. Draw up that list before the switch, not during the incident.

That is the only prerequisite. Nobody needs to be entitled to anything: the resolverOverrideGroup setting that earlier versions of this page asked for is retired, along with the activation date. Two things are still worth checking on the pilot repository:

  • The platform. enforce applies on GitHub and on Azure DevOps. On GitLab, the extension cannot read a repository's configuration yet, so it never blocks there, whatever the mode.
  • The comments meant for tools. toolCommands is empty by default — see the note at the bottom of this page.

Rolling back

Going from enforce back to assist should take minutes. The mode is resolved through the three levels described in configuration, and each of them can keep enforce in place on its own. Relax them in this order:

  • 1The floorIf your browsers' enterprise policy imposes enforce as the minimum mode, relax it there first. Neither of the next two levels can do it in its place.
  • 2The organization configurationSet its mode to assist. This covers every repository that does not write its own mode.
  • 3Each repository on your listEdit the file of every repository that writes "mode": "enforce" itself.

There is nothing to wait for and nothing to invalidate. Before it blocks a comment, the extension reads the configuration again, ignoring its cache. A relaxed mode therefore lifts the block at the very next attempt to send: the attempt is held while the configuration is re-read, then the button is released and a message asks the person to send again. The status pill may keep showing the old mode for up to an hour — the default cache duration — but that blocks nothing.

To check: on a test pull request, send a comment with no label. It must go through.

What to watch before going further

There is no organization-wide dashboard. The indicators that would tell you when a team is ready — the share of compliant comments, how labels are used — are meant to come from the extension's own telemetry, which is off by default and opt-in. They cannot be computed yet: the counters the extension emits today do not record how many comments were written. Until then, monitor the assist stage manually by watching the status pill and the banner.

What is worth watching is qualitative: are reviewers finding the right labels, are blocking threads getting resolved instead of stalling, and does the banner's count on a pull request usually reach zero before it merges. Uneven label use, or counts that never quite reach zero, are both reasons to slow down rather than switch to enforce.

Configuration for each stage

Only one setting needs to change as you move from one stage to the next: mode. Everything else should already be in place.

{
  "version": 1,
  "mode": "assist",                  // assist → enforce
  "exemptUsers": ["dependabot[bot]", "github-actions[bot]"],
  "toolCommands": ["/*", "@dependabot", "@renovate"]
}
worth checking before you enable it

toolCommands is empty by default. In enforce mode, a bare /rebase is rejected like any other non-compliant comment until "/*" is added, which exempts all slash commands. An entry for a single command, such as "/rebase", is ignored.