gh-metrics

Calculate pull-request and issue metrics

gh-metrics

Description

A command line tool that calculates pull-request and issue metrics given a GitHub repository. It is quite fast since it uses the graphql v4 API of GitHub. More specifically it calculates:

  • Average Time to Close (in days, does not account for issues closed and re-opened)
  • Average Comments per Issue
  • Average Time to Merge (in days)
  • Average Comments per PR (Open, Closed or Merged)
  • Average Comments per PR (Closed or Merged)
  • Average Reviews per PR (Closed or Merged)
  • Average Interactions (comments, reviews, review comments) per PR (Closed or Merged)

Tech Stack

javascriptgraphqlnode.jsnpmGitHub API v4GitHub Actions (CI/CD)

Links

GitHub

Back