Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

PiotrZakrzewski/merge-chance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

merge-chance.info code

This is repo for the merge-chance, page where you can checks success rate for your favorite open-source project on GitHub.

if you just want to make some plots for given repo locally, use scripts from the scripts dir.

Build & Setup

You will need a GitHub token, in order to extract data from GitHub instructions.

First setup a google cloud project and set following env vars:

export GCP_PROJECT=YOUR_PROJECT
export GCP_REGION=DESIRED_REGION
export GH_TOKEN=YOUR_GITHUB_TOKEN

Then create a service account with admin rights to your project's firestore. Save the json key to this service account as key.json in current dir. Run the app locally with

 gunicorn --bind :8080 --workers 1 --threads 8 --timeout 0 mergechance.main:app

Before first deploy to GCP run

./first_config.sh

in order to deploy it as a Cloud Run service on your GCP project run

./build.sh

This will build the container with Cloud Build and deploy it.