GithubHelp home page GithubHelp logo

github_google_sheets_report's Introduction

GitHub Report

Gathers data from GitHub API and exports a dashboard view of branches and pull requests to a Google Sheets spreadsheet.

A sample run

make venv
source venv/bin/activate
make init
python generate_report.py --config klick-genome.config.yml

The klick-genome.config.yml is created per "Configuration" below.

Optionally (runnable in Git Bash):

./run_update.sh

System requirements

  • Python 3
  • pip
  • virtualenv
  • make (optional)

You can use a Vagrant box with Python 3 and make installed (e.g., https://github.com/jeff-zohrab/devops-box).

Validation

Check your system requirements are all set up:

python --version  # should return 3.x.x ...
                  # the Makefile ensures we use python 3.
pip help          # should work
virtualenv venv   # should work

Installation

Clone this repo, and set up the environment:

make venv
source venv/bin/activate
make init

Configuration

  • Copy config.yml.example to config.yml, and edit the .yml file.
  • Copy github_creds.yml.example to github_creds.yml, and edit the .yml file.

Design note: the github creds file is separate from the config file as the same creds could potentially be used for several repositories.

Arguments

generate_report.py takes various arguments, run it with -h:

usage: generate_report.py [-h] [--config CONFIGFILE] [--creds GITHUBCREDS]

Generate google sheets from github data.

optional arguments:
  -h, --help           show this help message and exit
  --config CONFIGFILE  Path to config file (default is config.yml)
  --creds GITHUBCREDS  Path to github credentials file (default is
                       github_creds.yml)

Development

Run tests with make test

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.