Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Recommendations to prevent unwanted changes regarding approvals:

  • Ensure to have a Code Owners rule covering the CODEOWNERS file itself, for example:
    CODEOWNERS @CTO

  • Protect branches for which you want enforced approvals with Branch permissions to prevent changes without a pull request for example.

Repository administrators can overrule the enforcement, by disabling the merge checks for repository administrators (e.g. helpful during unplanned absences).

Disable Code Owners by default

When you install Code Owners for the first time, it will be enabled by default. Any projects/repositories can thus use Code Owners right away. If you prefer to gradually adopt Code Owners within your organization, you can decide to disable Code Owners by default instead and let individual projects and/or repositories enable it when they are ready to use Code Owners.

If you want to disable Code Owners by default, you need to navigate to the Code Owners administration configuration (located at <your instance>/plugins/servlet/codeowners/admin) and toggle the switch in front of the "Code Owners app" to OFF.

...

Note that enabled Code Owners merge checks will still apply even if you disable Code Owners.

...

Create Pull Requests

Create Pull Requests with automatically assigned reviewers

...