This repository has been archived by the owner on Jan 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 124
Customize
Brad Rydzewski edited this page Nov 25, 2016
·
3 revisions
Place an .lgtm
file in the root of your repository to customize your project’s approval process. Below is a list of available configuration parameters:
-
approvals
number of required approvals, defaults to 2 -
pattern
regular expression used to match approvals, defaults to(?i)LGTM
-
self_approval_off = true
prevents an author from approver their own commit
Example .lgtm
configuration file:
approvals = 1
pattern = "(?i)LGTM"
Example pattern to match LGTM
in a comment:
pattern = "(?i)LGTM"
Example pattern to match +1
in a comment:
pattern = "(?i)\\+1"
Example pattern to match :+1:
emoji in a comment:
pattern = "(?i):\\+1:"
Example pattern to match :shipit:
in a comment:
pattern = "(?i):shipit:"
Example pattern that combines multiple of the above patterns:
pattern = "(?i):shipit:|:\\+1:|LGTM"
Pattern matching is performed using Go’s regular expressions package. We recommended testing custom regular expressions in the Go playground.
DISCLAIMER
LGTM is a trademark of Semmle, Ltd (www.lgtm.com). The use of the LGTM mark and name on this page shall not imply any affiliation with or endorsement by Semmle, Ltd.