mattermost-plugin-github icon indicating copy to clipboard operation
mattermost-plugin-github copied to clipboard

Feature: Synchronize emoji reactions on posts generated by the plugin

Open mickmister opened this issue 4 years ago • 1 comments

When the GitHub bot creates a post, it's always related to some specific issue/PR or comment. If a user reacts to the post in Mattermost with one of the 8 emojis supported for reactions on GitHub, the plugin should proxy this reaction to the appropriate PR/comment on GitHub. Likewise, if the user removes their emoji reaction in Mattermost, we should remove it in GitHub.

We don't need to perform synchronization from GitHub to Mattermost. If someone reacts to a PR/comment on GitHub, the plugin doesn't need to propagate that reaction to the associated post(s).

Going forward, we should store the (issue/PR or comment) URL in the post.props field for all posts made by the bot. This way, we can deterministically figure out which PR or comment is associated with this post.

mickmister avatar Oct 13 '21 03:10 mickmister

https://developers.mattermost.com/integrate/plugins/server/reference/#Hooks.ReactionHasBeenAdded https://developers.mattermost.com/integrate/plugins/server/reference/#Hooks.ReactionHasBeenRemoved

mickmister avatar Jul 19 '22 15:07 mickmister

Note that there is progress on this ticket in an abandoned PR https://github.com/LokeshN/mattermost-plugin-github/pull/1

mickmister avatar Nov 10 '22 18:11 mickmister