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

Investigate supporting GitHub Discussions webhooks

Open mickmister opened this issue 3 years ago • 5 comments

There is a request to support subscriptions for GItHub Discussions, which is a topic-based discussion tool provided by GitHub. Here's the original request from community:


Hi everyone, apologies if this is the wrong place to raise this. Our team currently love and use the plugin all the time and were wondering if there are plans to add subscriptions for "discussions"? Like how under "features" there are issues, pulls, etc. Would be very handy if "discussions" could be subscribed to, with pretty much the same behaviour as issues, so when created, commented on, etc.

Issue created from a Mattermost message by @samw.

mickmister avatar Sep 16 '21 14:09 mickmister

@mickmister tried exploring the solution for this, currently stable version of GitHub webhook is not having event for any discussion event ,there are lot of user who are waiting for it since 2020 hope to see it soon as it is being tested in a private repo from the contributor's GitHub here are some reference of same

https://github.com/github/feedback/discussions/2959 https://github.com/github/feedback/discussions/2943 https://github.com/github/feedback/discussions/3910 https://github.com/github/feedback/discussions/4173

let me know if we want to try the beta model of webhook , not sure but can try it if we can use same.

sibasankarnayak avatar Sep 30 '21 16:09 sibasankarnayak

@sibasankarnayak Thanks a bunch for looking into this. 1/5 Let's hold off on implementing this until the offering from GitHub is more stable, as this ticket is not particularly a highly requested feature. Hopefully the necessary pieces become part of the go-github package as well.

I'll keep the issue open though since it seems like it does seem to have some traction (based on reactions of the issue).

@hanzei Thoughts on this whole situation?

mickmister avatar Oct 01 '21 15:10 mickmister

:+1: for waiting a bit. Until go-github supports discussion and there is webhook support, there is no reasonable way to implementing this feature request.

hanzei avatar Oct 04 '21 07:10 hanzei

Hey everyone, just curious if the support from GitHub / other dependencies is there yet to look at supporting this when there is time? I tried to look into it a bit, and it looks like there is now, but I'm not intimate with what's required exactly.

Samuel-Webster avatar Jan 25 '22 05:01 Samuel-Webster

Everything is there now. https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#discussion covers the API docs and go-github also supports it: https://pkg.go.dev/github.com/google/go-github/v42/github#DiscussionEvent

hanzei avatar Jan 25 '22 07:01 hanzei