Skip to content

Commit e0dcafe

Browse files
samuelmeulifregante
authored andcommitted
Enable parse-backticks on commit titles on more pages (#2653)
1 parent 1aaedf5 commit e0dcafe

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

source/index.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,18 @@ export const _isCommit = [
2727
'https://github.com/sindresorhus/refined-github/pull/148/commits/00196'
2828
];
2929

30-
export const isCommitList = (): boolean => /^commits\//.test(getRepoPath()!);
30+
export const isCommitList = (): boolean => isRepoCommitList() || isPRCommitList();
3131
export const _isCommitList = [
32+
'https://github.com/sindresorhus/refined-github/commits/master?page=2',
33+
'https://github.com/sindresorhus/refined-github/commits/test-branch',
34+
'https://github.com/sindresorhus/refined-github/commits/0.13.0',
35+
'https://github.com/sindresorhus/refined-github/commits/230c2',
36+
'https://github.com/sindresorhus/refined-github/commits/230c2935fc5aea9a681174ddbeba6255ca040d63',
37+
'https://github.com/sindresorhus/refined-github/pull/148/commits'
38+
];
39+
40+
export const isRepoCommitList = (): boolean => /^commits\//.test(getRepoPath()!);
41+
export const _isRepoCommitList = [
3242
'https://github.com/sindresorhus/refined-github/commits/master?page=2',
3343
'https://github.com/sindresorhus/refined-github/commits/test-branch',
3444
'https://github.com/sindresorhus/refined-github/commits/0.13.0',
@@ -159,6 +169,7 @@ export const _isProject = [
159169
export const isPR = (): boolean => /^pull\/\d+/.test(getRepoPath()!);
160170
export const _isPR = [
161171
'https://github.com/sindresorhus/refined-github/pull/148',
172+
'https://github.com/sindresorhus/refined-github/pull/148/commits',
162173
'https://github.com/sindresorhus/refined-github/pull/148/files',
163174
'https://github.com/sindresorhus/refined-github/pull/148/conflicts',
164175
'https://github.com/sindresorhus/refined-github/pull/148/commits/00196',
@@ -194,6 +205,11 @@ export const _isPRConversation = [
194205
'https://github.com/sindresorhus/refined-github/pull/148'
195206
];
196207

208+
export const isPRCommitList = (): boolean => /^pull\/\d+\/commits$/.test(getRepoPath()!);
209+
export const _isPRCommitList = [
210+
'https://github.com/sindresorhus/refined-github/pull/148/commits'
211+
];
212+
197213
export const isPRFiles = (): boolean => /^pull\/\d+\/files/.test(getRepoPath()!);
198214
export const _isPRFiles = [
199215
'https://github.com/sindresorhus/refined-github/pull/148/files'

0 commit comments

Comments
 (0)