This generates a unified diff email for GitHub's WebHooks in the Settings page of the repositories. It handles the default Push events only.
This is built using Serverless which works ontop of AWS API Gateway and Lambda.
- AWS Account with privileges to create IAM Roles, Lambda Functions and API Gateway Endpoints
- AWS Profile Configured
- NPM and Node.js
- Install Serverless
npm install serverless -g
- Clone the this repository
serverless project initinside the project directory
cdinto the lambda function github-push-notification folder and run
- Modify the github-push-notification/config.json file to match your requirements
- Deploy using
serverless dash deploy
- Log onto the AWS Console and go to API Gateway. Grab the ARN URL for the github-push-notification post endpoint and put that into the GitHub Webhook Settings page
If you modify the template and want to just update the function simply run:
serverless function deploy