Skip to content

CI: Notifications when a job in GitHub Actions fails #32301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
datapythonista opened this issue Feb 27, 2020 · 7 comments
Open

CI: Notifications when a job in GitHub Actions fails #32301

datapythonista opened this issue Feb 27, 2020 · 7 comments
Assignees
Labels
CI Continuous Integration

Comments

@datapythonista
Copy link
Member

xref #32279

For what I see, when a build in the CI for a commit to master fails, only the user who triggered the action receives an alert (assuming the user has notifications enabled in their settings).

I think for Travis and pipelines, some people are receiving notifications for all the failures. Ideally we would like to be able to do the same for actions. I had a quick look, but not sure how this can be enabled. I checked in the settings, but no option seems to exist.

@leeyspaul
Copy link
Contributor

take

@leeyspaul
Copy link
Contributor

It seems as though we'd have to build in a step for each corresponding job in the workflow based on this StackOverflow post.

@datapythonista would this be what you were thinking?

@leeyspaul
Copy link
Contributor

After doing some research it seems like there could be a possibility in calling the GitHub API to pull a list of watchers on the repo and then notifying accordingly on a failure.

Docs: https://developer.github.com/v3/activity/watching/#list-watchers

Would this be something on the right lines that we're thinking for this? @datapythonista

@datapythonista
Copy link
Member Author

@jreback, do you want to receive a notification when a build from a merge to master is broken? We can try to implement it with GitHub actions.

@jreback
Copy link
Contributor

jreback commented Jul 24, 2020

yeah it's worth it - it should be low volume

we used to have travis emails a long time ago for this

but only if easy

@vhawk19
Copy link

vhawk19 commented Sep 6, 2020

Is this still open, I'd love to contribute!

@alissaVrk
Copy link

was there any progress?
is there any way to view master builds in a similar way to PRs? or do I have to go to actions and filter by branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

No branches or pull requests

6 participants