Sort order of comments on the Conversation tab #129980
Unanswered
carsten-krueger
asked this question in
Pull Requests
Replies: 4 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.
0 replies
-
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.
0 replies
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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