Skip to content

Commit

Permalink
Add isClosedConversation (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakov116 committed Jul 7, 2022
1 parent 04940b8 commit e339286
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ collect.set('isQuickPR', [
export const isDraftPR = (): boolean => exists('#partial-discussion-header [title="Status: Draft"]');
export const isOpenPR = (): boolean => exists('#partial-discussion-header [title="Status: Open"], #partial-discussion-header [title="Status: Draft"]');
export const isMergedPR = (): boolean => exists('#partial-discussion-header [title="Status: Merged"]');
export const isClosedPR = (): boolean => exists('#partial-discussion-header [title="Status: Closed"], #partial-discussion-header [title="Status: Merged"]');
export const isClosedConversation = (): boolean => exists('#partial-discussion-header :is([title="Status: Closed"], [title="Status: Merged"], [title="Status: Closed as not planned]")');
/** @deprecated Use isClosedConversation */
export const isClosedPR = isClosedConversation;

export const isReleases = (url: URL | HTMLAnchorElement | Location = location): boolean => getRepo(url)?.path === 'releases';
collect.set('isReleases', [
Expand Down

0 comments on commit e339286

Please sign in to comment.