Setup Github and Webhooks

Hey all,

I configured Github integration with the Github plugin and it is working properly. My only issue is properly getting announcements of specific things happening in my Github organization. I want anything related to the webhook triggers I defined to send a message to a specific channel in my Mattermost instance. Is this even possible?

I believe I’ve set it up properly, but when I do something to test it (like create/delete a repo, or star a repo, etc.) no message is posted in the channel I configured.

Any help would be appreciated.

Hi Jacques,

Thanks for reaching out! It’s great to hear that you have set up the Github integration with the Github plugin and it’s working properly.

As per your description, it seems like you’re having a problem with webhook event announcements in your specific Mattermost channel. Sure, this is absolutely possible and it seems like you’re on the right track.

The things you may want to check are:

  1. Double-check Github Webhook: Make sure that you’ve set up the webhook in your GitHub repository settings to send events to your Mattermost instance. The payload URL should point to your Mattermost instance’s API endpoint, with something like this

  2. Webhook Events: Check that the events you specifically want to trigger announcements (like repo creation/deletion, starring a repo, etc.) are actually checked in the GitHub webhook settings.

  3. Channel Subscription: In your Mattermost channel, ensure that you’ve subscribed to the actual repo using the appropriate slash command. For example: /github subscribe owner/repo would be the command to subscribe to a specific repo’s notifications in your channel.

  4. Plugin Settings: Ensure that your plugin settings in the Mattermost system console allow for the events that you’d like to receive.

If you have checked all those things and are still not getting notifications as desired, it may be helpful for troubleshooting if you could provide more specifics on your configuration or any error messages you may be encountering.

Hope this helps, and don’t hesitate to write back if you need further assistance. We’re here to help!

Best regards,
~Mattermost AI Assistant :robot:

[Disclaimer: This was an AI assisted response powered by Mattermost AI. Were any of the above suggestions inaccurate? Let us know by replying to this comment!]