Skip to content

feat: add action to notify MM about GH failures - #132

Open
hk21702 wants to merge 1 commit into
mainfrom
mm-notify-on-failure-action
Open

feat: add action to notify MM about GH failures#132
hk21702 wants to merge 1 commit into
mainfrom
mm-notify-on-failure-action

Conversation

@hk21702

@hk21702 hk21702 commented Jul 23, 2026

Copy link
Copy Markdown
Member

Here, we add an action to notify Mattermost about GH failures. When used as intended, it fetches the corresponding run, linking the run, ref, and describing the trigger. It also pings a list of configured users.

This is pretty similar to what we already use elsewhere. But, instead of a webhook, this utilizes the MM REST API and requires a bot token for use. We also add a few additional features, such as using the repository org/owner icon as the author icon by default.

In terms of safety, as long as the MM token is implemented using a repository secret, it should be that only actors with write permissions can send notifications. That being said, caution should still be taken when using this action in public repositories.

Example notification:
image

@hk21702 hk21702 self-assigned this Jul 23, 2026
@hk21702
hk21702 requested a review from didrocks as a code owner July 23, 2026 15:49
@hk21702
hk21702 force-pushed the mm-notify-on-failure-action branch 6 times, most recently from 44697d9 to 6da16bd Compare July 23, 2026 16:44
Here, we add an action to notify Mattermost about GH failures. This utilizes the MM REST API and requires a bot token for use.

When used as intended, it fetches the corresponding failing run, linking the run, ref, and describing the trigger. It also pings a list of configured users.
@hk21702
hk21702 force-pushed the mm-notify-on-failure-action branch from 6da16bd to 909c5d6 Compare July 23, 2026 16:50
@hk21702
hk21702 requested a review from CarlosNihelton July 23, 2026 16:51
@hk21702

hk21702 commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant