File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -239,8 +239,11 @@ collect.set('isRepo', [
239
239
'https://github.com/sindresorhus/refined-github/issues/templates/edit' , // Gotcha for isRepoIssueList
240
240
] ) ;
241
241
242
+ /** @deprecated use isEmptyRepoRoot instead */
242
243
export const isEmptyRepo = ( ) : boolean => isRepo ( ) && exists ( '.blankslate' ) ;
243
244
245
+ export const isEmptyRepoRoot = ( ) : boolean => isRepoRoot ( ) && exists ( '.blankslate' ) ;
246
+
244
247
export const isRepoTaxonomyDiscussionList = ( url : URL | Location = location ) : boolean => / ^ l a b e l s \/ .+ | ^ m i l e s t o n e s \/ \d + (? ! \/ e d i t ) / . test ( getRepoPath ( url ) ! ) ;
245
248
collect . set ( 'isRepoTaxonomyDiscussionList' , [
246
249
'https://github.com/sindresorhus/refined-github/labels/Priority%3A%20critical' ,
@@ -422,7 +425,7 @@ export const canUserEditOrganization = (): boolean => isOrganizationProfile() &&
422
425
423
426
export const canUserEditRepo = ( ) : boolean => isRepo ( ) && exists ( '.reponav-item[href$="/settings"]' ) ;
424
427
425
- /** @deprecated use canUserEditRepo */
428
+ /** @deprecated use canUserEditRepo instead */
426
429
export const isRepoWithAccess = canUserEditRepo ;
427
430
428
431
const getUsername = ( ) => document . querySelector ( 'meta[name="user-login"]' ) ! . getAttribute ( 'content' ) ! ;
You can’t perform that action at this time.
0 commit comments