Skip to content

Commit 8714b49

Browse files
committed
Skips lgtm but
1 parent 1972b06 commit 8714b49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function run() {
1717
// Merge if they say they have access
1818
if (context.eventName === "issue_comment" || context.eventName === "pull_request_review") {
1919
const bodyLower = getPayloadBody().toLowerCase();
20-
if (bodyLower.includes("lgtm")) {
20+
if (bodyLower.includes("lgtm") && !bodyLower.includes("lgtm but")) {
2121
new Actor().mergeIfHasAccess();
2222
} else if (bodyLower.includes("@github-actions close")) {
2323
new Actor().closePROrIssueIfInCodeowners();

0 commit comments

Comments
 (0)