Display confirmation popup whenever trying to submit a issue/comment in GitHub that's too short, and maybe every time #3911
darkred posted onGitHub
GitHub allows in the Issues and Discussions section of repos:
- to submit a new issue with just 1 character as title and no body, and
- to submit a comment with just 1 character .
Apart from that, personally, I sometimes accidentally press the submit keyboard shortcut before my issue/comment text is ready. mainly because the build-in hotkey for submitting an issue/comment is <kbd>Ctrl + Enter</kbd> (I confuse it with <kbd>Shift + Enter</kbd>) or just <kbd>Enter</kbd> if typing in the title textbox. This is embarrassing, having the other members trying to reply to your half-made issue/comment while you still try to finish it...
Also, posting a comment of just a few characters instead of using a reaction is rarely useful.
So, my suggestion is to add a feature to RG to display a confirmation popup (or a subtle warning message, to press again Submit to confirm) in such edge cases, and, maybe every time you try to submit a new issue/comment . I believe that getting a confirmation serves as a reminder to make sure that you have it indeed ready before submitting.
Thank you
For reference I have this script: GitHub - Confirmations before submitting issues and comments which displays a confirmation popup whenever trying to submit a new issue or comment via <kbd>Ctrl+Enter</kbd> or <kbd>Enter</kbd>, but it's too simple (it doesn't even take into account the text length), in general it's way too far from perfect.
<sub>I have already posted this suggestion in https://github.com/isaacs/github/issues/842 and contacted support@github.com years ago.</sub>