`shorten-links` - Show "(earlier comment)" for same-thread links by Copilot · Pull Request #9329 · refined-github/refined-github · GitHub
Skip to content

shorten-links - Show "(earlier comment)" for same-thread links#9329

Merged
fregante merged 7 commits into
mainfrom
copilot/shorten-links-same-thread-comments
May 1, 2026
Merged

shorten-links - Show "(earlier comment)" for same-thread links#9329
fregante merged 7 commits into
mainfrom
copilot/shorten-links-same-thread-comments

Conversation

Copilot AI commented May 1, 2026

Copy link
Copy Markdown
Contributor

Test URLs

#6057 (comment)
#9329 (comment)

Screenshot

Before After
Screenshot Screenshot 2

Copilot AI linked an issue May 1, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Shorten links for same-thread comments shorten-links: show "(earlier comment)" for same-thread comment links May 1, 2026
Copilot AI requested a review from fregante May 1, 2026 12:39
Comment thread source/github-helpers/dom-formatters.tsx Outdated
Comment thread source/github-helpers/dom-formatters.tsx Outdated
Copilot AI requested a review from fregante May 1, 2026 13:24
@fregante fregante marked this pull request as ready for review May 1, 2026 13:27
@fregante fregante changed the title shorten-links: show "(earlier comment)" for same-thread comment links shorten-links - Show "(earlier comment)" for same-thread links May 1, 2026
Comment thread source/github-helpers/dom-formatters.tsx Outdated
Copilot AI requested a review from fregante May 1, 2026 13:40

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works!

#9329 (comment)

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straightforward, tested, screenshotted, merging

@fregante fregante enabled auto-merge (squash) May 1, 2026 13:55
@fregante fregante merged commit fa4f83b into main May 1, 2026
9 checks passed
@SunsetTechuila SunsetTechuila deleted the copilot/shorten-links-same-thread-comments branch May 1, 2026 14:24
@SunsetTechuila

Copy link
Copy Markdown
Contributor

comment

@SunsetTechuila

SunsetTechuila commented May 1, 2026

Copy link
Copy Markdown
Contributor

"earlier comment" can be factually incorrect: #9329 (review). It's also not immediately clear that the link refers to a comment in the same thread. "Comment on this conversation" would be better, imo

@SunsetTechuila

Copy link
Copy Markdown
Contributor

And reviews are not covered:

image

@fregante

fregante commented May 1, 2026

Copy link
Copy Markdown
Member

PRs are best reviewed when open, not immediately after closure.

@fregante

fregante commented May 1, 2026

Copy link
Copy Markdown
Member

For the order of the comments, I suppose this is likely to happen on issues where generally the first comment will say "Edit: Refer to comment xyz below for the solution". Technically speaking, any links to comments always refer to them in the past. If you edit a comment it always refers to an earlier comment because you cannot link to a comment that doesn't yet exist.

We could use "comment on this page" to make it easier but it could be verbose. Do you have any suggestions other than time-based wording?

@SunsetTechuila

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

shorten-links for same-thread comments links

3 participants