Giter Site home page Giter Site logo

core-weekly-generator's Introduction

Core Weekly report generator

Core Weekly Integration tests

Core weekly generator is a micro Python 3.6+ CLI application that is able to generate a list of merged PR for a selected list of branches in an interval of dates.

Installation

$ pip install -r requirements.txt

Usage

Display help

$ ./core-weekly.py --help
usage: core-weekly.py [-h] [--no-cache] [--debug] [--stats] [--year YEAR]
                      (--date DATE | --week WEEK | --compute)

PrestaShop Core Weekly

optional arguments:
  -h, --help   show this help message and exit
  --no-cache   Disable cache
  --debug      Use Debug
  --stats      Print stats report and save it in json file if you specify a
               week number
  --year YEAR  Specify which year you want to use in Week context
  --date DATE  Date range
  --week WEEK  Week number
  --compute    Compute data stored in var directory

Core Weekly

Generate Core Weekly with a date range

 $ python core-weekly.py --date 2019-08-05..2019-08-11 > my-core-weekly.md

Or easier by specifing a week number

 $ python core-weekly.py --week 11 > my-core-weekly.md

And if you want the same week but in 2018

 $ python core-weekly.py --year 2018 --week 11 > my-core-weekly.md

The output template is almost ready to be published. What you might add manually is:

  • weekly releases of prestashop projects
  • a message targeting developers

Stats

Stats are generated and saved under var directory.

 $ python core-weekly.py --year 2018 --week 11 --stats

When stats are downloaded, you can compute them.

 $ python core-weekly.py --compute

Troubleshooting

Be aware that data fetched from GitHub is stored into a local sqlite cache file! This might create issues when submitting code changes to the tool logic.

Code quality

Install dependencies:

$ ./setup.py install

Static analysis

$ ./setup.py flake8

Running tests

To run unit tests:

$ ./setup.py nosetests
$ # or
$ nosetests

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.