Replies: 1 comment 3 replies
-
What about the bot adds the "pinned" comment's ID (or URL, etc) into the original message, then looks for it? This would be vaguely similar to the existing Alternatively, it could be triggered & maintained by something simple like "if a repo admin has reacted 🚀 to any comment, treat the first one as pinned". This would also avoid all downsides mentioned, and likely be a bit simpler. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It could be a beneficial thing to have a way of pinning a comment, so that it always appears at the top of the history, no matter what the possible sorting (if there is any) would be.
To not require any database storing or similar would I have two possible ideas to share:
HTML Comment tag
The Bot could use a HTML comment tag, to "mark" a comment as a pinned one by editing the user's content and f.e. add
<!--giscus:pinned-->
to it, so that when it reads it, it finds the tag and makes the comment pinned.There are however a few downsides:
Using "Mark as Answered"
This isn't a good idea for me, but I think it could still have benefits.
The bot can mark a comment as answer which it would treat as a pinning.
Downsides:
Beta Was this translation helpful? Give feedback.
All reactions