vafliik / github_stats

Simple Pull Request statistics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub PR stats

Simple Pull Request statistics

It is not done yet. And so far it does not work much :)

# main.py

Simple python script - can be run simply by python3 main.py

The path to repo is hardcoded, needs to be modified in the script The query to fetch the PRs can be modified, see API reference

Also, environmental variable GITHUB_TOKEN with GitHub token needs to be set

# django web application

Steps to run the app locally

  1. python3 manage.py makemigrations - create the migration file based on models in the app

  2. python3 manage.py migrate - apply the migrations

  3. python3 manage.py runserver - start the webserwer, by default on localhost:8000

# Python requirements

pip install Django

pip install python-dateutil

# # TODO

  • Async loading (now only wait and redirect)
  • Get labels with PRs (now the labels are downloaded only if PR detail is displayed, plus it does not update)
  • Repo management - get rid of the hardcoded values
  • Unit tests (ehm)
  • Refactoring, of course

About

Simple Pull Request statistics


Languages

Language:Python 70.9%Language:HTML 28.9%Language:CSS 0.2%