Skip to content

Commit efb1f7d

Browse files
committed
update
1 parent cbad3da commit efb1f7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ const stateSelector = [
293293

294294
export const isDraftPR = (): boolean => isPR() && $(stateSelector)!.textContent!.trim() === 'Draft';
295295
export const isOpenPR = (): boolean => {
296-
if (isPR()) {
296+
if (!isPR()) {
297297
return false;
298298
}
299299

@@ -302,7 +302,7 @@ export const isOpenPR = (): boolean => {
302302
};
303303

304304
export const isMergedPR = (): boolean => {
305-
if (isPR()) {
305+
if (!isPR()) {
306306
return false;
307307
}
308308

@@ -311,7 +311,7 @@ export const isMergedPR = (): boolean => {
311311
};
312312

313313
export const isClosedPR = (): boolean => {
314-
if (isPR()) {
314+
if (!isPR()) {
315315
return false;
316316
}
317317

@@ -320,7 +320,7 @@ export const isClosedPR = (): boolean => {
320320
};
321321

322322
export const isClosedIssue = (): boolean => {
323-
if (isIssue()) {
323+
if (!isIssue()) {
324324
return false;
325325
}
326326

0 commit comments

Comments
 (0)