Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.17 KB

readme.md

File metadata and controls

43 lines (32 loc) · 1.17 KB

Commit Sniffer

Reports statistics for a git repo:

  • direct commits to master (no Pull Requests)
  • self merges (John writes, John merges)
  • # and % of commits that are connected to an issue tracker
  • # and % of Pull Requests in total commits
  • # of revert commits

Commit Sniffer sample output

Mapping in teams

By mapping git commit authors to team names, you can get results per team rather than per author.

Setup

PHP 7.0.x, MySQL 5.x should be installed

  1. Clone the Repo
  2. create your local env cp .env.example .env
  3. Install dependencies composer install
  4. Create a database named commit-sniffer
  5. Run migrations php artisan migrate

Run

Calculate and print statistics for a repo:

./artisan repo:stats [path-to-repo]

Other useful options:

Option Description
--date-from="yyyy-mm-dd" Date since
--date-to"yyyy-mm-dd" Date until
--metrics=direct,tracked Comma separated metric names to be displayed
(any of direct, self-merges, tracked, pull-requests, reverts)

Map an author name to a team name:

./artisan repo:map-author [author-name] [team-name]