This compares the open PR requests that have ruleset changes to the Alexa top 1M sites, and adds labels corresponding to how they place within Alexa. Current labels are:
top-100top-1ktop-10ktop-100ktop-1m
This will work for admins of HTTPS Everywhere that generate a GitHub token.
docker build -t labeller .
Download and install node and npm, then
npm install
cp config.json.example config.json
Enter your GitHub token info into config.json.
Set your $GITHUB_TOKEN, and run
docker run -it -v $(pwd)/state_dir:/opt/state_dir -e GITHUB_TOKEN=$GITHUB_TOKEN labeller
node index.js