Skip to content

Commit a4a01db

Browse files
authored
Detect filtered commit list in isRepoCommitList (#2975)
1 parent a6a7cc9 commit a4a01db

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,18 @@ export const _isCommitList = [
3333
'https://github.com/sindresorhus/refined-github/commits/0.13.0',
3434
'https://github.com/sindresorhus/refined-github/commits/230c2',
3535
'https://github.com/sindresorhus/refined-github/commits/230c2935fc5aea9a681174ddbeba6255ca040d63',
36-
'https://github.com/sindresorhus/refined-github/pull/148/commits'
36+
'https://github.com/sindresorhus/refined-github/pull/148/commits',
37+
'https://github.com/sindresorhus/refined-github/commits?author=fregante'
3738
];
3839

39-
export const isRepoCommitList = (): boolean => String(getRepoPath()).startsWith('commits/');
40+
export const isRepoCommitList = (): boolean => String(getRepoPath()).startsWith('commits');
4041
export const _isRepoCommitList = [
4142
'https://github.com/sindresorhus/refined-github/commits/master?page=2',
4243
'https://github.com/sindresorhus/refined-github/commits/test-branch',
4344
'https://github.com/sindresorhus/refined-github/commits/0.13.0',
4445
'https://github.com/sindresorhus/refined-github/commits/230c2',
45-
'https://github.com/sindresorhus/refined-github/commits/230c2935fc5aea9a681174ddbeba6255ca040d63'
46+
'https://github.com/sindresorhus/refined-github/commits/230c2935fc5aea9a681174ddbeba6255ca040d63',
47+
'https://github.com/sindresorhus/refined-github/commits?author=fregante'
4648
];
4749

4850
export const isCompare = (): boolean => String(getRepoPath()).startsWith('compare');

0 commit comments

Comments
 (0)