File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,16 @@ collect.set('isProject', [
161
161
'https://github.com/sindresorhus/refined-github/projects/3' ,
162
162
] ) ;
163
163
164
+ export const isDiscussion = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ d i s c u s s i o n s \/ \d + / . test ( getRepo ( url ) ?. path ! ) ;
165
+ collect . set ( 'isDiscussion' , [
166
+ 'https://github.com/tophf/mpiv/discussions/50' ,
167
+ ] ) ;
168
+
169
+ export const isDiscussionList = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => getRepo ( url ) ?. path === 'discussions' ;
170
+ collect . set ( 'isDiscussionList' , [
171
+ 'https://github.com/tophf/mpiv/discussions' ,
172
+ ] ) ;
173
+
164
174
export const isPR = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ p u l l \/ \d + / . test ( getRepo ( url ) ?. path ! ) && ! isPRConflicts ( url ) ;
165
175
collect . set ( 'isPR' , [
166
176
'https://github.com/sindresorhus/refined-github/pull/148' ,
You can’t perform that action at this time.
0 commit comments