Computes top contributors over the organisation
Given organisation calculates the top contributors by counting thier total contributions over the repositories. The contributors are sorted in descending order to have most active on top.
[
{
"name": "user1",
"contributions": 2017
},
{
"name": "user2",
"contributions": 1650
},
{
"name": "user3",
"contributions": 731
}
]
sbt compile
Table 1: The list of available variables.
|Variable name |Description |Required|Default |
|———————————|———————————————————-|————|———————————-|
|SERVER_HTTP_PORT |Server port |No |8080 |
|SERVER_CACHE_EXPIRY |Cached result expiry |No |30 minutes |
|SERVER_IDLE_TIMEOUT |Server response wait timeout |No |5 minutes |
|SERVER_CLIENT_TIMEOUT |Client response wait timeout |No |1 minute |
|GH_API_URL |GitHub API URL |No |https://api.github.com |
|GH_MAX_CONCURRENT |Max concurrent requests to gather data |No |100 |
|GH_TOKEN |Personal access token |Yes | |
|CIRCUIT_MAX_FAILURES |Circuit opening threshold |No |5 |
|CIRCUIT_RESET_TIMEOUT |Circuit drop timeout |No |10 seconds |
To start service run
sbt run
Once service is running use an address http://localhost:8080/org/{org_name}/contributors where {org_name}
is some organisation name.