Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Double-command fix #81

Open
kentcdodds opened this issue Aug 15, 2021 · 0 comments
Open

Double-command fix #81

kentcdodds opened this issue Aug 15, 2021 · 0 comments

Comments

@kentcdodds
Copy link
Owner

When a message is edited, the bot checks whether it contains any commands and re-executes those commands. This is useful for when people update their command (for a typo fix). But it can trigger the bot to run the same thing twice if the thing that was edited is irrelevant extra stuff (like text before the command, or when embedded links are expanded which counts as an edit).

To fix this, we could determine the arguments in the pre-edit message and the post-edit message and if they're the same, do not re-execute the command.

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

No branches or pull requests

1 participant