Skip to content

Instantly share code, notes, and snippets.

@jamiebuilds
Last active March 6, 2018 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiebuilds/9148d55ffd4f83afcfafcd35ff49bd9e to your computer and use it in GitHub Desktop.
Save jamiebuilds/9148d55ffd4f83afcfafcd35ff49bd9e to your computer and use it in GitHub Desktop.

CODEOWNERS Extension

*                 @defunkt
*.js              @octocat @github/js   min=2
docs/*            docs@example.com      review=optional min=0
CODEOWNERS        it@example.com        review=required

[block]
  *               @defunkt
  package.json    infosec@example.com
  CODEOWNERS      it@example.com infosec@example.com
  
[unblock]
  *               @defunkt
  
[notify]
  CODEOWNERS      infosec@example.com
  package.json    infosec@example.com

review=optional/required

You can override the repo-specific settings for a reviewer if their review is required or optional.

min=0/1/2/...

You can specify the minimum number of required reviewers for a pull request to be merged.

[block]

Allow a user/group to block pull requests from being merged, even if they are approved by others.

These blocks can only be removed by the user/group that created them.

[unblock]

Allow a user/group to un-block a pull request, even if they are not the user/group that created them.

[notify]

Subscribe a user/group to updates without making them reviewers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment