Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display error messages upon incorrect/unrecognized slash commands #31

Open
dscho opened this issue Mar 16, 2023 · 0 comments
Open

Display error messages upon incorrect/unrecognized slash commands #31

dscho opened this issue Mar 16, 2023 · 0 comments

Comments

@dscho
Copy link
Member

dscho commented Mar 16, 2023

In git-for-windows/MSYS2-packages#92 (comment), we tried to add release notes, but the syntax of the slash command is very strict and requires a "release note type".

However, there was no feedback that anything was amiss.

Let's respond to incorrect or unrecognized slash commands with a helpful error message, probably as a new issue comment that at-mentions the actor and references the invocation (at least if the actor is allowed to issue slash commands).

The best way to implement this is probably to wrap the handling of all slash commands that need permission (i.e. everything except /hi) in a try { ... } catch(e) { reply(...) } block, and also warn about any /add command that does not match that very precise regular expression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant