Skip to main content

PR Analyzer

Imagine that you work on a project, and your Pull Requests don't get reviewed fast enough. Is it just that odds were against you, or in this project Pull Requests are usually not reviewed in a timely fashion?

PR Analyzer is a small set of command line utilities for analyzing Pull Requests in the GitHub, and it should help you to find an answer for the question above.

Using PR Analyzer you will be able:

  • Find out the list of open pull requests
  • Get the statistics about lead time, time before a first comment for the Pull Requests in the repo
  • Generate some nice reports from this statistics, or export this into other systems

Note: Please be aware that the tool is currently under active development.

Installation

You can install pr_analyzer using pip:

$ pip install pr-analyzer

GitHub token is required for the pr_analyzer to be able to use GitHub API:

$ set GITHUB_TOKEN=your_token_value

Available commands

list_prs

usage: list_prs [-h] [--created [created]] [--updated [updated]] [--top [top]]
                url [url ...]

Prints list of open pull requests for given repositories

positional arguments:
  url                  repository url

optional arguments:
  -h, --help           show this help message and exit
  --created [created]  If given - will show PRs created more than `created`
                       days ago
  --updated [updated]  If given - will show PRs updated more than `updated`
                       days ago
  --top [top]          If given - returns up to `top` PRs starting from the
                       oldest

print_stats

usage: print_stats [-h] url [url ...]

Prints statistics about pull requests activity for given repositories

positional arguments:
  url         repository url

optional arguments:
  -h, --help  show this help message and exit

GitHub CI

Azure Pipeline

Metadata

Release files for pr-analyzer 20.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pr-analyzer 20.4
File Size Uploaded Provenance Actions
pr_analyzer-20.4.tar.gz 4.7 kB Without provenance Details for pr_analyzer-20.4.tar.gz

Release files / pr_analyzer-20.4.tar.gz

Download URL pr_analyzer-20.4.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
18a287030665e2af21819b3db6d33e519c2a141645ee3a9873117bb63441ba10
BLAKE2b-256 checksum
How to use checksums
a62a009cb4a5dd2f448d4c58ccb7aac1182fd75795c9a1199baea726f7e93a18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

Security for pr-analyzer 20.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page