Skip to content

liip/commit-hook-email

Repository files navigation

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

About

GitLab and Github Commit Email Hook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages