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', [
229
229
'https://github.com/sindresorhus/refined-github/compare/test-branch?quick_pull=1' ,
230
230
] ) ;
231
231
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
+
232
237
export 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 ! ) ;
233
238
collect . set ( 'isReleasesOrTags' , [
234
239
'https://github.com/sindresorhus/refined-github/releases' ,
You can’t perform that action at this time.
0 commit comments