我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

About email notifications for pushes to your repository

People with admin permissions in a repository can choose to automatically send email notifications to a specific email address when anyone pushes to the repository.

You'll only receive email notifications if outbound email support is enabled on 您的 GitHub Enterprise Server 实例. For more information, contact your site administrator.

Each email notification for a push to a repository lists the new commits and links to a diff containing just those commits. In the email notification you'll see:

  • 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 Enterprise
  • 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

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 "Choosing the delivery method for your notifications."

Enabling email notifications for pushes to your repository

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

  2. Under your repository name, click Settings.

    Repository settings button

  3. Click Notifications.

    Notifications button in sidebar

  4. 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

  5. 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 Enterprise.

    Email secret textbox

  6. Optionally, select Send from author to have emails delivered using the committer's email address. Otherwise, emails are sent from 或由站点管理员配置的无需回复电子邮件地址.

    Email author checkbox

  7. Click Save settings.

    Save settings button

Further reading

问问别人

找不到要找的内容?

联系我们