{"id":90,"date":"2016-04-26T21:38:27","date_gmt":"2016-04-26T13:38:27","guid":{"rendered":"http:\/\/www.sunpengcheng.com\/?p=90"},"modified":"2016-04-26T21:39:23","modified_gmt":"2016-04-26T13:39:23","slug":"set-email-notification-on-git-commits","status":"publish","type":"post","link":"https:\/\/www.sunpengcheng.com\/index.php\/2016\/04\/26\/set-email-notification-on-git-commits\/","title":{"rendered":"Set email notification on Git commits"},"content":{"rendered":"<p>How do i configure the appropoiate Git hook to send a summary email whenever a set of changes is pushed to the repository?<\/p>\n<p>There is a simplest solution:<\/p>\n<ol>\n<li>Go to one of your repository that you want to setup email notification.<\/li>\n<li>On the right menu,click on <strong>Settings<\/strong>,go to repository setting page.<\/li>\n<li>On the left options,click on <strong>Webhooks &amp; Services<\/strong>.<\/li>\n<li>In the Services tab,click <strong>Add services<\/strong>,from available services,choose <strong>Email<\/strong>.<\/li>\n<li>Fill in your email address in field <strong>Address<\/strong>.<\/li>\n<li>Check the checkbox Sedn from <strong>Author &amp; Active<\/strong>.<\/li>\n<li>Click the <strong>Add service<\/strong> button to complete the configuration.<\/li>\n<li>After setting,we can click the <strong>Test service<\/strong> button to send the test email.<\/li>\n<\/ol>\n<p>This is my way to setup email notification. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How do i configure the appropoiate Git hook to send a s<\/p>\n<p><a class=\"moretag\" href=\"https:\/\/www.sunpengcheng.com\/index.php\/2016\/04\/26\/set-email-notification-on-git-commits\/\">Continue Reading&hellip;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[29,11],"class_list":["post-90","post","type-post","status-publish","format-standard","hentry","category-git","tag-email-notification","tag-git"],"_links":{"self":[{"href":"https:\/\/www.sunpengcheng.com\/index.php\/wp-json\/wp\/v2\/posts\/90","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sunpengcheng.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sunpengcheng.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sunpengcheng.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sunpengcheng.com\/index.php\/wp-json\/wp\/v2\/comments?post=90"}],"version-history":[{"count":3,"href":"https:\/\/www.sunpengcheng.com\/index.php\/wp-json\/wp\/v2\/posts\/90\/revisions"}],"predecessor-version":[{"id":93,"href":"https:\/\/www.sunpengcheng.com\/index.php\/wp-json\/wp\/v2\/posts\/90\/revisions\/93"}],"wp:attachment":[{"href":"https:\/\/www.sunpengcheng.com\/index.php\/wp-json\/wp\/v2\/media?parent=90"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sunpengcheng.com\/index.php\/wp-json\/wp\/v2\/categories?post=90"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sunpengcheng.com\/index.php\/wp-json\/wp\/v2\/tags?post=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}