Lion is a dashboard for developers written with Ember and Rails. It rewards developers when they get shit doneĀ®.
This is the API. Here you can find the web client.
Clone this repository and run:
# Bundle the application
bundle install
# Copy the sample ENV
# Update the `GITHUB_APP_ID`, `GITHUB_APP_SECRET`, `USERS` and other variables to relevant values for your organization.
cp .example-env .env
# Setup the database
bundle exec rake db:create db:migrate
# -- Optional
# If your app is runningon heroku you can download a snapshot of the DB by setting the HEROKU_APP_NAME Env var and running:
bundle exec thor db:capture # To capture a db backup on production
bundle exec thor db:sync # To install this backup locally on the dev database
rails server
bundle exec rspec
- Fork this repository
- Create a PR and send it our way
- Postgresql
- Github
All the features presented here have a summary page which updates live. Every action can be either performed via the interface or using the RESTful API.
There are currently two leaderboards: weekly and all time. The top person in the ladder will always have their bar full, and the other bars are calculated based on the top one.
Points are given according to the following rules.
Merging PRs:
- 100 points if the number of deletions is double the number of additions and it's greater than 1000
- 50 points if the number of additions is greater than 500
- 30 points if the number of deletions is double the number of additions and it's greater than 100
- 15 points if the number of additions is greater than 100
- 5 points if the number of additions is less than 10
- 10 points in all the other cases
Reviewing PRs:
- Half of the PR points for commenting with
:+1:
,:thumbsup:
,:shipit:
In order to get points for merging PRs you need to setup a webhook in your repos that points to:
https://your.lion.installation.com/api/pull_requests
Weekly winners will be placed here.
In order to declare a weekly winner run the hall_of_fame:declare_weekly_winner
rake task every monday morning.
Displayed stats:
- Number of merged PRs
- Number of reviews
- Total number of additions across merged PRs
- Total number of deletions across merged PRs