Coder Social home page Coder Social logo

fishsticks's Introduction

fishsticks

Something about this request smells fishy.

Parse Node core compatible git info. Commit author information is extracted from the git commit Author field. Reviewer information is extracted from Reviewed-By: lines in the commit message.

Usage

Create a JavaScript file that exports a configuration object with the following properties:

  • repos (array) - An array of strings with each string representing the path to a locally cloned git repository.
  • emails (array) - An array of strings with each string representing an email address. Commit author and reviewer information is compared against the values in this array.
  • startDate (date) - Only report commits that occurred on, or after this date. This value is optional. If it is not included, the start date is assumed to be the beginning of time.
  • endDate (date) - Only report commits that occurred on, or before this date. This value is optional. If it is not included, the end date is assumed to be the end of time.

Next, run fishsticks -c path-to-config-file.js. The application will walk the git log of each repository. For each email address, the number of relevant authored and reviewed commits will be reported.

CLI Options

fishsticks supports the following command line options:

  • -c, --config (string) - The path to the configuration file.
  • -r, --report (string) - The format of the output. Optional. Supported formats are:
    • summary - Simple textual description of the number of commits. This is the default.
    • json - A JSON representation containing the full commit data.

Sample Config File

'use strict';
module.exports = {
  repos: [
    '/Users/peterpluck/node',
    '/Users/peterpluck/libuv'
  ],
  emails: [
    '[email protected]',
    '[email protected]'
  ],
  startDate: new Date('10-01-2016'),
  endDate: new Date('10-31-2016')
};

fishsticks's People

Contributors

cjihrig avatar mcollina avatar

Stargazers

Luca Maraschi avatar

Watchers

James Cloos avatar  avatar

Forkers

mcollina

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.