Dashing widget to show the build status of a CircleCI project.
- Get a Circle API Token from your Account Dashboard and set it in your environment as
CIRCLE_CI_AUTH_TOKEN
- Add the
httparty
to your Gemfile and runbundle install
Then:
- Copy the below coffee/scss/html files into a widget folder named
circle_ci
- Copy the
circle_ci.rb
file into thejobs
folder
OR dashing install 5494978
Then copy the CircleCI logo below into your assets folder
There is also another version for more compactly displaying multiple builds which you can see here
HTTParty should be a dependency, apologies for not adding that to the README, will do that now.
For the error on line 50, I'm not entirely sure why that's being caused. latest_build should be a valid hash and 'committer_email' should be a valid index. Could you debug the response from CircleCI, anonymise and post?
PROJECTS is being reinitialised because I used a constant. I will update it to be a lowercase variable
projects
instead, should still work fine, but remove the conflict.