- Place the coffee,html and scss files into a folder named pull_requests in the widgets folder
- Place the rb file into the jobs folder
Add octokit
to the gemfile:
gem 'octokit'
and then just run
$ bundle install
Make sure to you have a config/config.yml file.
In this file you need your
- Git oauth key
- Git organisation
- Git API endpoint - should look like "https://YOUR_DOMAIN.co.uk/api/v3/"
- Git repos you wish to monitor
Example config.yml
git-oauth-key: 0cc9443ewfjoewjfoewfewfew
git-org: Bob
git-end-point: https://YOUR_DOMAIN.co.uk/api/v3/
git-repos: [your_repo_1,your_repo_2]
Add this to your dashboard file:
<li data-row="3" data-col="1" data-sizex="1" data-sizey="2">
<div data-view="PullRequests" data-id="pull_req"></div>
</li>