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

Create a webhook via a slash command in mattermost

Open aaronrothschild opened this issue 5 years ago • 2 comments

Add a feature that will allow users to add and list webhooks in GitHub via a Mattermost slash command. The user would pass in a GitHub repository and a slash command would create a webhook on behalf of the connected Mattermost user.

A list option would also show the existing webhooks for the repo name passed in by the user.

Note that this functionality is already implemented for GitLab and some of this implementation may be salvageable.

aaronrothschild avatar Oct 02 '20 17:10 aaronrothschild

@aaronrothschild is someone already working on this issue? If not then I would like to work on it. Can you please point me out to respective packages I can look into and also documentations on how I can set up a testing environment, please?

sasha27 avatar Oct 07 '20 08:10 sasha27

Sure, you can take it, @sasha27 ! The implementation in Gitlab you can find it here: https://github.com/mattermost/mattermost-plugin-gitlab/blob/dc2be260042454cd3db7cb9cc7cf35594e34eb80/server/command.go#L244 Regarding setting up the environment, please check here: https://developers.mattermost.com/contribute/getting-started/

larkox avatar Oct 07 '20 08:10 larkox

This is implemented via the /github setup webhook command

hanzei avatar Feb 20 '23 15:02 hanzei