We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isEditingRelease
1 parent b406cb7 commit b7dc300Copy full SHA for b7dc300
index.ts
@@ -225,6 +225,11 @@ collect.set('isEditingFile', [
225
'https://github.com/sindresorhus/refined-github/edit/ghe-injection/source/background.ts',
226
]);
227
228
+export const isEditingRelease = (url: URL | Location = location): boolean => String(getRepoPath(url)).startsWith('releases/edit');
229
+collect.set('isEditingRelease', [
230
+ 'https://github.com/sindresorhus/refined-github/releases/edit/v1.2.3',
231
+]);
232
+
233
export const isRepo = (url: URL | Location = location): boolean => /^[^/]+\/[^/]+/.test(getCleanPathname(url)) &&
234
!reservedNames.includes(url.pathname.split('/', 2)[1]) &&
235
!isDashboard(url) &&
0 commit comments