Skip to content

thumbot/thumbs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thumbs

A simplified integration robot.

![Logo][logo] [logo]: https://ryanbrownhill.github.io/github-collab-pres/img/thumbsup.png

What does it do ?

It merges a pull request for you after doing validation.

  • (merge,build,test success and >=2 reviewers)

How does it work ?

  • When a pull request is created,
    • a github webhook is called on /webhook
    • Thumbs will then merge, build and test and record status to a pr comment.
  • When a comment is created,
    • a github webhook is called on /webhook
    • Thumbs checks to ensure PR contains a minimum of 2 non author review comments

Setup

> git clone https://github.com/davidx/thumbs.git
> cd thumbs
> rake install

test

For testing

export GITHUB_USER=ted
export GITHUB_PASS=pear

export GITHUB_USER1=ted
export GITHUB_PASS1=pear

export GITHUB_USER2=bob
export GITHUB_PASS2=apple

production

For normal operation, only a single set of github credentials is needed.

export GITHUB_USER=ted
export GITHUB_PASS=pear

test webhooks

In a separate window, start ngrok to collect the forwarding url
> ngrok -p 4567
This will display the url to use, for example:
Forwarding                    http://699f13d5.ngrok.io -> localhost:4567        
Go to the Github repo Settings->Webhooks & services" and click [Add webhook].
Set the Payload URL to the one you just saved. add /webhook path. 

Example: http://699f13d5.ngrok.io/webhook

Checkbox: Send me Everything

Test

> rake test

Usage

> rake start
# Now create a pull request or leave a comment and watch the magic happen.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%