File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -254,11 +254,11 @@ TEST: addTests('isPRList', [
254254 'https://github.com/sindresorhus/refined-github/pulls?q=is%3Apr+is%3Aclosed' ,
255255] ) ;
256256
257- // `commits` -> `changes` Since December 2025
258- export const isPRCommit = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ p u l l \/ \d + \/ c o m m i t s | c h a n g e s \/ [ \d a - f ] { 5 , 40 } $ / . test ( getRepo ( url ) ?. path ) ;
257+ export const isPRCommit = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => / ^ p u l l \/ \d + \/ ( c o m m i t s | c h a n g e s ) \/ [ \d a - f ] { 5 , 40 } $ / . test ( getRepo ( url ) ?. path ) ;
259258TEST: addTests ( 'isPRCommit' , [
260259 'https://github.com/sindresorhus/refined-github/pull/148/commits/0019603b83bd97c2f7ef240969f49e6126c5ec85' ,
261260 'https://github.com/sindresorhus/refined-github/pull/148/commits/00196' ,
261+ // Since December 2025
262262 'https://github.com/sindresorhus/refined-github/pull/148/changes/0019603b83bd97c2f7ef240969f49e6126c5ec85' ,
263263 'https://github.com/sindresorhus/refined-github/pull/148/changes/00196' ,
264264] ) ;
You can’t perform that action at this time.
0 commit comments