shorten-links - Show "(earlier review)" for same-thread links#9332
Conversation
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/7035fc56-70ff-45b0-9460-2c444306c1e1 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
#123 (review) and show "(earlier review)"shorten-links - Show "(earlier comment)" for same-thread links
shorten-links - Show "(earlier comment)" for same-thread linksshorten-links - Show "(earlier review)" for same-thread links
|
What if we replace the number with "this conversation"? "this conversation (review)"/"this conversation (comment)"? |
This is something that |
|
I initially didn't do it because we're using
The reason why I'm hesitant to use your suggestion (this conversation (comment)) is that it doesn't really look like a native link. Whereas (earlier comment) seems more flexible and human. |
|
I'm still open to suggestions since 2022 (#6057) but that's the only two options we got so far. I'll merge this for this release and review once we find better alternatives. |
|
To maintainers: Please add labels to this PR |
Extends the same-thread link shortening (added in #9329 for comments) to also handle review links. GitHub renders cross-references to reviews in the same PR as
#123 (review)— these are now replaced with(earlier review).source/github-helpers/dom-formatters.tsx: addedelse ifbranch inshortenLink()matching#${conversationNumber} (review)→(earlier review)Test URLs
#9329
Screenshot