Coder Social home page Coder Social logo

weeklysummary's Introduction

Github Weekly Summary Generator

This tool can be used to generate a Markdown File containing the last 7 days of closed pull requests for the roirevolution organization.

Installation

  1. Clone the repo
  2. Fetch dependencies mix deps.get
  3. Build the escript mix escript.build

You may need to update elixir and dependecies. These things seem to do that:

  1. brew upgrade elixir
  2. env MIX_ENV=dev mix deps.get

Also, if you encounter this, answer with Y:

Mix requires Hex >= 0.14.0 but you have 0.13.2
Shall I abort the current command and update Hex? [Yn] Y

Github Access Token

You will need a Github access token that has access to the organization you are fetching pull request information for.

You can generate this token in your Github setting.

This access_token is accessed via an environmental variable. You can export it or specify it when running the script.

Running

# Set the environmental variable
export GITHUB_ACCESS_TOKEN="MY_TOKEN"
./weekly_summary ORGANIZATION_NAME

# Set at run time
GITHUB_ACCESS_TOKEN=MY_TOKEN ./weekly_summary ORGANIZATION_NAME

Options

Number of Days

By default, the last 7 days of closed Pull Requests will be fetched. This can be customized with the --num-days argument.

# last 7 days
./weekly_summary ORGANIZATION_NAME

# yesterday
./weekly_summary --num-days 1 ORGANIZATION_NAME

# last 30 days
./weekly_summary --num-days 30 ORGANIZATION_NAME

Specifying Date Range

You can also specify the start-date and end-date. Dates are expected to be in the format YYYYMMDD. If you only include start-date the end-date is today.

# start date is 2018-01-01
# end date is today
./weekly_summary --start-date 20180101 ORGANIZATION_NAME

# start date is 2017-12-25
# end date is 2017-01-31
./weekly_summary --start-date 20171225 --end-date 20170131 ORGANIZATION_NAME

Outputting to Another File

By default, the Weekly Summary is printed to stdout. This script is most useful to run and redirect ourput to a file

./weekly_summary > this_week.md

weeklysummary's People

Contributors

tmr08c avatar mabranon avatar

Watchers

 avatar James Cloos avatar Jeremy Aube avatar Charlie Saunders avatar Jamie Gordon avatar Travis Polselli avatar Tyler Murphy avatar Andrew Marshall avatar Danny Rivers avatar Justin Mason avatar Luke Varsamis avatar ____ Zaporteza avatar Santosh Mathew avatar  avatar David Austin avatar

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.