Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Skips lgtm but
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Feb 28, 2022
1 parent 1972b06 commit 8714b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function run() {
// Merge if they say they have access
if (context.eventName === "issue_comment" || context.eventName === "pull_request_review") {
const bodyLower = getPayloadBody().toLowerCase();
if (bodyLower.includes("lgtm")) {
if (bodyLower.includes("lgtm") && !bodyLower.includes("lgtm but")) {
new Actor().mergeIfHasAccess();
} else if (bodyLower.includes("@github-actions close")) {
new Actor().closePROrIssueIfInCodeowners();
Expand Down

0 comments on commit 8714b49

Please sign in to comment.