Skip to content

Commit 6dab34d

Browse files
committed
Handle casing correctly with the PR status
1 parent f89fef8 commit 6dab34d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {readFileSync} = require("fs");
77

88
// Effectively the main function
99
async function run() {
10-
core.info("Running version 1.5.0")
10+
core.info("Running version 1.5.1")
1111

1212
// Tell folks they can merge
1313
if (context.eventName === "pull_request_target") {
@@ -123,7 +123,7 @@ async function mergeIfLGTMAndHasAccess() {
123123
return
124124
}
125125

126-
if (prInfo.data.state !== "OPEN") {
126+
if (prInfo.data.state.toLowerCase() !== "open") {
127127
await octokit.issues.createComment({ ...thisRepo, issue_number: issue.number, body: `Sorry @${sender}, this PR isn't open.` });
128128
return
129129
}

0 commit comments

Comments
 (0)