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.
isNewFile
1 parent 9aa429d commit fdd6a4cCopy full SHA for fdd6a4c
index.ts
@@ -127,6 +127,11 @@ collect.set('isMilestoneList', [
127
'https://github.com/sindresorhus/refined-github/milestones',
128
]);
129
130
+export const isNewFile = (url: URL | HTMLAnchorElement | Location = location): boolean => Boolean(getRepo(url)?.path.startsWith('new'));
131
+collect.set('isNewFile', [
132
+ 'https://github.com/sindresorhus/refined-github/new/main',
133
+]);
134
+
135
export const isNewIssue = (url: URL | HTMLAnchorElement | Location = location): boolean => getRepo(url)?.path === 'issues/new';
136
collect.set('isNewIssue', [
137
'https://github.com/sindresorhus/refined-github/issues/new',
0 commit comments