Simple Dashing widget that show the amount of open issues and bugs for a Gitlab project.
The widget was made by @joren for use @openminds. If you end up using this widget, please send me a tweet! I'd love to hear about it.
This widget requires the curb gem for easy curl request in Ruby and your Gitlab API key.
This widgets uses the number-widget, so no need to create a new one.
You can add as much events as you want in the config file.
Add the project id and api key your project in config/gitlab.yml file. Name your number widget with 'projectname
_issues' to match it with this job.
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="projectx_issues" data-view="Number" data-title="Bugs - Issues" data-min="0" data-max="100"></div>
</li>
And that is all.
This will show two numbers on the widget, the first one are the open or re-opened bugs and the second one are all open and re-opened issues. The widget wil give a warning after 1 bug and danger after 5 bugs, but this can be configured in the job file. For the bugs we look at the issues with a label 'bug', but this can also be changed in the job file.
Have tips on making this better? Please leave a comment and/or fork the gist. Sending me a tweet on Twitter is probably a good idea as well!
need to add
gem 'curb'
to the Gemfile