Skip to content

Commit a7c8131

Browse files
authored
Add missing comment hash (#35)
1 parent 56db9af commit a7c8131

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function commentIndicator(hash) {
3030
return ' (comment)';
3131
}
3232

33-
if (hash.startsWith('#pullrequestreview-')) {
33+
if (hash.startsWith('#pullrequestreview-') || hash.startsWith('#discussion_r')) {
3434
return ' (review)';
3535
}
3636

test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,10 @@ test('GitHub.com URLs', urlMatcherMacro, new Map([
458458
'https://togithub.com/fregante/shorten-repo-url/pull/33#pullrequestreview-801229042',
459459
'#33 (review)',
460460
],
461+
[
462+
'https://togithub.com/fregante/shorten-repo-url/pull/33#discussion_r750069394',
463+
'#33 (review)',
464+
],
461465
[
462466
'https://togithub.com/nodejs/node/pull/123',
463467
'nodejs/node#123',

0 commit comments

Comments
 (0)