Skip to content

Commit c5b3e8e

Browse files
authored
Add isDeletingFile (#96)
1 parent dcba97c commit c5b3e8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,12 @@ collect.set('isReleasesOrTags', [
261261
'https://github.com/sindresorhus/refined-github/releases/tag/0.2.1',
262262
]);
263263

264+
export const isDeletingFile = (url: URL | HTMLAnchorElement | Location = location): boolean => Boolean(getRepo(url)?.path.startsWith('delete'));
265+
collect.set('isDeletingFile', [
266+
'https://github.com/sindresorhus/refined-github/delete/master/readme.md',
267+
'https://github.com/sindresorhus/refined-github/delete/ghe-injection/source/background.ts',
268+
]);
269+
264270
export const isEditingFile = (url: URL | HTMLAnchorElement | Location = location): boolean => Boolean(getRepo(url)?.path.startsWith('edit'));
265271
collect.set('isEditingFile', [
266272
'https://github.com/sindresorhus/refined-github/edit/master/readme.md',

0 commit comments

Comments
 (0)