Andreas Köberle
Andreas Köberle

Reputation: 110892

How to get notified when someone pushes into a GitHub branch?

We're are using GitHub Enterprise in our company. We have a “develop” branch where every programmer must push their work. Is there a way to get notified when someone pushes into the develop branch along with a link to a diff view, like the one you get for a pull request?

Upvotes: 41

Views: 13679

Answers (3)

Ry-
Ry-

Reputation: 224857

Not quite - but close enough. (You'll get notified for every commit, not push.)

For GitHub Enterprise as of mid 2014:

  1. Go into your repository's Settings
  2. Open the "Webhooks and Services" tab
  3. Click "Add Service" button
  4. Select "Email" from the long list of services
  5. Put in an e-mail address. This can be an e-mail address that forwards to multiple e-mail addresses, or just your own if only one person/account needs e-mail notifications.
  6. Check "Send From Author" (probably) and "Active" (definitely).

For older versions of GitHub Enterprise:

  1. Go into your repository's Settings
  2. Open the "Service Hooks" tab
  3. Select "Email" from the long list of services
  4. Put in an e-mail address. This can be an e-mail address that forwards to multiple e-mail addresses, or just your own if only one person/account needs e-mail notifications.
  5. Check "Send From Author" (probably) and "Active" (definitely).

Done!

Update GitHub plans on shutting down GitHub services before the end of the year. Refer

Upvotes: 36

Aurélien
Aurélien

Reputation: 1852

Disclaimer: I'm the original author.

This project allows you to get an e-mail when a commit gets pushed on a repository you are watching (on any branch).

Explaination: gicowa is a command-line tool written in python that lists all last commits on all GitHub repos you are watching. This tool can send its output via e-mail and can be called from your crontab. Doing that makes you receive an e-mail notification each time a commit gets pushed on a GitHub repo you are watching.

Upvotes: 1

AhmadAssaf
AhmadAssaf

Reputation: 3654

How about using IFTT or Zapier

Upvotes: 1

Related Questions