GitHub automatically delivers notifications when a user commits to a pull request that you're subscribed to either by email, web notifications, or both depending on your notification settings. If you want more detailed notifications, you can set up an email service hook through GitHub.

You can filter email notifications you receive for pushes to a repository. For more information, see "About notification emails." You can also turn off email notifications for pushes. For more information, see "Managing notification delivery methods."

Email notifications will list the new commits and link to a diff containing just those commits. Web notifications will also link to a diff containing the new commits.

You must have admin access to configure repository services.

Emails sent by the email service are different from regular notifications; they don't show up on the web, and they provide different contextual information.

Email services send the following information:

  • The name of the repository where the commit was made.
  • The branch a commit was made in.
  • The SHA1 of the commit, including a link to the diff in GitHub.
  • The author of the commit.
  • The date when the commit was made.
  • The files that were changed as part of the commit.
  • The commit message.

Enabling email service notifications for pushes to your repository

  1. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, click Settings. Repository settings button

  3. Click Webhooks & Services. Webhooks and services

  4. Click Add service, then type "Email." Add service menu
  5. Type up to two email addresses, separated by whitespace, where you'd like notifications to be sent. If you'd like to send emails to more than two accounts, set one of the email addresses to a group email address. Email address textbox
  6. If you operate your own server, you can verify the integrity of emails via the Secret token. This token is sent with the email as the Approved header. If the Approved header matches the token you sent, you can trust that the email is from GitHub. Email secret textbox
  7. Optionally, select Send from author to have emails delivered using the committer's email address. Otherwise, emails are sent from noreply@github.com. Email author checkbox
  8. Click Add service. Email add service

Disabling email service notifications for pushes to your repository

  1. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, click Settings. Repository settings button

  3. Click Webhooks & Services. Webhooks and services

  4. Under "Services", next to your added email service, click . Delete email service

Further reading