Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
165 views
in Technique[技术] by (71.8m points)

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?

question from:https://stackoverflow.com/questions/8371173/how-to-get-notified-when-someone-pushes-into-a-github-branch

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...