@@ -27,8 +27,18 @@ export const _isCommit = [
27
27
'https://github.com/sindresorhus/refined-github/pull/148/commits/00196'
28
28
] ;
29
29
30
- export const isCommitList = ( ) : boolean => / ^ c o m m i t s \/ / . test ( getRepoPath ( ) ! ) ;
30
+ export const isCommitList = ( ) : boolean => isRepoCommitList ( ) || isPRCommitList ( ) ;
31
31
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 => / ^ c o m m i t s \/ / . test ( getRepoPath ( ) ! ) ;
41
+ export const _isRepoCommitList = [
32
42
'https://github.com/sindresorhus/refined-github/commits/master?page=2' ,
33
43
'https://github.com/sindresorhus/refined-github/commits/test-branch' ,
34
44
'https://github.com/sindresorhus/refined-github/commits/0.13.0' ,
@@ -159,6 +169,7 @@ export const _isProject = [
159
169
export const isPR = ( ) : boolean => / ^ p u l l \/ \d + / . test ( getRepoPath ( ) ! ) ;
160
170
export const _isPR = [
161
171
'https://github.com/sindresorhus/refined-github/pull/148' ,
172
+ 'https://github.com/sindresorhus/refined-github/pull/148/commits' ,
162
173
'https://github.com/sindresorhus/refined-github/pull/148/files' ,
163
174
'https://github.com/sindresorhus/refined-github/pull/148/conflicts' ,
164
175
'https://github.com/sindresorhus/refined-github/pull/148/commits/00196' ,
@@ -194,6 +205,11 @@ export const _isPRConversation = [
194
205
'https://github.com/sindresorhus/refined-github/pull/148'
195
206
] ;
196
207
208
+ export const isPRCommitList = ( ) : boolean => / ^ p u l l \/ \d + \/ c o m m i t s $ / . test ( getRepoPath ( ) ! ) ;
209
+ export const _isPRCommitList = [
210
+ 'https://github.com/sindresorhus/refined-github/pull/148/commits'
211
+ ] ;
212
+
197
213
export const isPRFiles = ( ) : boolean => / ^ p u l l \/ \d + \/ f i l e s / . test ( getRepoPath ( ) ! ) ;
198
214
export const _isPRFiles = [
199
215
'https://github.com/sindresorhus/refined-github/pull/148/files'
0 commit comments