Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 950 Bytes

File metadata and controls

31 lines (23 loc) · 950 Bytes

Commit Email Hook

This PHP script is a web hook and sends your commits including the diff to a configured email address. It works with GitLab and GitHub.

Installation

curl -s https://getcomposer.org/installer | php
php composer.phar install
cp config.php.sample config.php

Configuration

GitLab

GitHub

  • Create a GitHub OAuth token with the following command:
curl -u YOUR_GITHUB_USERNAME -d '{"scopes":["repo"],"note":"Commit Emails"}' https://api.github.com/authorizations