File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -264,12 +264,11 @@ addTests('isQuickPR', [
264
264
'https://github.com/sindresorhus/refined-github/compare/test-branch?quick_pull=1' ,
265
265
] ) ;
266
266
267
- export const isDraftPR = ( ) : boolean => exists ( '#partial-discussion-header [title="Status: Draft"]' ) ;
268
- export const isOpenPR = ( ) : boolean => exists ( '#partial-discussion-header [title="Status: Open"], #partial-discussion-header [title="Status: Draft"]' ) ;
269
- export const isMergedPR = ( ) : boolean => exists ( '#partial-discussion-header [title="Status: Merged"]' ) ;
270
- export const isClosedConversation = ( ) : boolean => exists ( '#partial-discussion-header :is([title="Status: Closed"], [title="Status: Merged"], [title="Status: Closed as not planned"])' ) ;
271
- /** @deprecated Use isClosedConversation */
272
- export const isClosedPR = isClosedConversation ;
267
+ export const isDraftPR = ( ) : boolean => exists ( '#partial-discussion-header .octicon-git-pull-request-draft' ) ;
268
+ export const isOpenPR = ( ) : boolean => exists ( '#partial-discussion-header :is(.octicon-git-pull-request, .octicon-git-pull-request-draft)' ) ;
269
+ export const isMergedPR = ( ) : boolean => exists ( '#partial-discussion-header .octicon-git-merge' ) ;
270
+ export const isClosedPR = ( ) : boolean => exists ( '#partial-discussion-header :is(.octicon-git-pull-request-closed, .octicon-git-merge)' ) ;
271
+ export const isClosedIssue = ( ) : boolean => exists ( '#partial-discussion-header :is(.octicon-issue-closed, .octicon-skip)' ) ;
273
272
274
273
export const isReleases = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => getRepo ( url ) ?. path === 'releases' ;
275
274
addTests ( 'isReleases' , [
You can’t perform that action at this time.
0 commit comments