File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,11 @@ collect.set('isQuickPR', [
229229 'https://github.com/sindresorhus/refined-github/compare/test-branch?quick_pull=1' ,
230230] ) ;
231231
232+ export const isDraftPR = ( ) : boolean => exists ( '#partial-discussion-header [title="Status: Draft"]' ) ;
233+ export const isOpenPR = ( ) : boolean => exists ( '#partial-discussion-header [title="Status: Open"], #partial-discussion-header [title="Status: Draft"]' ) ;
234+ export const isMergedPR = ( ) : boolean => exists ( '#partial-discussion-header [title="Status: Merged"]' ) ;
235+ export const isClosedPR = ( ) : boolean => exists ( '#partial-discussion-header [title="Status: Closed"], #partial-discussion-header [title="Status: Merged"]' ) ;
236+
232237export const isReleasesOrTags = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ t a g s $ | ^ r e l e a s e s ( $ | \/ t a g ) / . test ( getRepo ( url ) ?. path ! ) ;
233238collect . set ( 'isReleasesOrTags' , [
234239 'https://github.com/sindresorhus/refined-github/releases' ,
You can’t perform that action at this time.
0 commit comments