Skip to content

Leaderboards of various categories for a Github repository

Notifications You must be signed in to change notification settings

virajvchavan/github-leaderboards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ranks contributors for a Github repository based on number of pull requests merged.

This is an API which is used here: https://github.com/virajvchavan/github-leaderboards-ui

Code is supposed to be deployed as serverless functions.

Built this to try out serverless deployments and the Serverless Framework (http://serverless.com/).

Deployed here: https://ohwoj3u4oi.execute-api.us-east-1.amazonaws.com/dev/prs E.g.: https://ohwoj3u4oi.execute-api.us-east-1.amazonaws.com/dev/prs?owner=denoland&repo=deno

Run locally: - First install the serveless cli (https://www.serverless.com/framework/docs/getting-started/) - Add a file env.yml with the required environment variables - serverless offline start Run locally with debug mode: SLS_DEBUG=* serverless offline start Deploy to cloud: serverless deploy http://localhost:3000/dev/prs?owner=denoland&repo=deno

The API:

  • GET /prs?owner=denoland&repo=deno

    • Three possible responses:
      • { status: "processing" }
      • { status: "done", users: [{username, merged_prs, open_prs}, ...] } // users are sorted by merged_prs_count
      • { status: "error" }
  • View logs for the deployed app: serverless logs -f leaderboard -t

About

Leaderboards of various categories for a Github repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published