Tool to automatically assign a "Reviewer" to a GitHub Issue and to the attached Trello Card.
What it does:
- Finds unassigned issues on GitHub.
- Assignes a member of your team.
- Locates the right Card on Trello.
- Checks if the assignee is on vacation(using tel).
- Adds the assigned member to the Card.
- If the Issue/PullRequest is closed or merged move it in the right column.
- Prints graphs using Morris.js to display statistics(autorefresh every 5 seconds).
git clone [email protected]:jschmid1/reviewlette.git
cd reviewlette
bundle
cd bin
./reviewlette
or
gem install reviewlette
Fill config/.trello.yml
with your consumerkey, consumersecret, oauthtoken and board_id
-comsumerkey: theconsumerkey11
-consumersecret: theconsumersecret11
-oauthtoken: theoauthtoken11
Fill config/.github.yml
with your token and repo
-token: thetokenfromgithub
-repo: ['my/repo', 'my/otherrepo']
Edit the reviewlette.db
scaffold in the main directory to your needs.
Structure:
primary_key | first_name | last_name | Reviews_count | created_at | github_name | trello_name | vacation_status | tel_name |
---|---|---|---|---|---|---|---|---|
Integer(PK) | Text | Text | Integer | Text | Text | Text | Numeric | Text |
1 | Joshua | Schmid | 30 | 2014-01-01 | jschmid1 | jschmid1 | false | jschmid |
You can either use a GUI like Sqlite database browser or the sqlite commandline interface
e.g.
insert into reviewer values('John','Smith', '0', '', 'github_name', 'trello_name', 'false', 'tel_name');
Using Octokit as a GitHub api wrapper