A simplified integration robot.
![Logo][logo] [logo]: https://ryanbrownhill.github.io/github-collab-pres/img/thumbsup.png
It merges a pull request for you after doing validation.
- (merge,build,test success and >=2 reviewers)
- When a comment is made on a pull request, a github webhook is called on /webhook
- Using the webhook payload, it looks up the pull request.
- It verifies if the pr is valid for merge:
- Merges locally 'git merge feature_branch'
- Builds 'make build'
- Test 'make test'
- Ensures PR contains a minimum of 2 non author review comments
- Adds a comment on the PR with the build status
- After final validations, request a PR merge through github API
> git clone https://github.com/davidx/thumbs.git
> cd thumbs
> rake install
For testing
export GITHUB_USER=ted
export GITHUB_PASS=pear
export GITHUB_USER=ted
export GITHUB_PASS=pear
export GITHUB_USER1=bob
export GITHUB_PASS1=apple
For normal operation, only a single set of github credentials is needed.
export GITHUB_USER=ted
export GITHUB_PASS=pear
> ngrok -p 4567
Forwarding http://699f13d5.ngrok.io -> localhost:4567
Set the Payload URL to the one you just saved. add /webhook path.
Example: http://699f13d5.ngrok.io/webhook
Checkbox: Send me Everything
> rake test
> rake start
# Now go to your favorite pull request on github, leave a comment and watch the magic happen.