Sort order of comments on the Conversation tab #129980
Replies: 7 comments
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
This is very much needed. |
Beta Was this translation helpful? Give feedback.
-
|
When we get this feature, please have it be a sticky preference on user settings. (along with other things, like default pref for whitespace in diffs) |
Beta Was this translation helpful? Give feedback.
-
|
Here is a simple TamperMonkey script to get the job done: // ==UserScript==
// @name github-pr-conversation-reversed
// @version 0.1
// @description Reverses the order of conversation (from the recent to the oldest one)
// @author tfactor2
// @match https://github.com/*/pull/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
// ==/UserScript==
(function reverseConversations() {
const $discussionDiv = document.querySelector('.js-discussion');
if ($discussionDiv && !$discussionDiv.hasAttribute('data-github-pr-conversation-reversed-processed')) {
const children = Array.from($discussionDiv.children);
children.reverse().forEach(child => $discussionDiv.appendChild(child));
$discussionDiv.setAttribute('data-github-pr-conversation-reversed-processed', 'true');
}
setTimeout(reverseConversations, 1000);
})(); |
Beta Was this translation helpful? Give feedback.
-
|
+1 - why do I need to scroll to the bottom of the page to see the most recent information? |
Beta Was this translation helpful? Give feedback.
-
|
Gitlab has this option so I think Github is behind here .... |
Beta Was this translation helpful? Give feedback.
-
|
We really need this... Copilot can fix it in a sec. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
In a pull request on the Conversation tab it would be good to be able to change the sort order of comments.
Currently comments are sorted in ascending order from oldest to newest. I'd like to sort comments in descending order so that the newest comment is on top. As far as I know there is currently no way to do that.
Beta Was this translation helpful? Give feedback.
All reactions