Skip to main content

Command line tool to get number of PRs reviewed by a user

Project description

Github Stats Python Versions GitHub

Command line tool to get number of PRs reviewed by a user.

Usage

Use --help to see all options.

$ gitstats --help
Usage: gitstats [OPTIONS]

  This script will print the number of PRs reviewed by the user in the given
  timeframe.

Options:
  -t, --token TEXT            Github token
  -u, --username TEXT         Github username
  -o, --org TEXT              Github org
  -r, --repos TEXT            ',' separated github repos
  -s, --start_timestamp TEXT  Start time in epoch format
  -e, --end_timestamp TEXT    End time in epoch format
  --help                      Show this message and exit.

The script by default attempts to read the options from the environment variables. Set the following environment variables:

  • GITHUB_TOKEN - GitHub token
  • GITHUB_USERNAME - GitHub username
  • GITHUB_ORGANIZATION - GitHub organization
  • GITHUB_REPOS - Comma separated list of GitHub repositories

If the environment variables are not set, the script will prompt for the values.

When the script is run, it will print the number of PRs reviewed by the user in the last two weeks.

$ gitstats
Repos ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2/2 • 0:00:06 0:00:00


╭───┬───────────┬─────────────────────────────────────────────────────────────────────┬───────╮
│   │ Repo      │ PR Title                                                            │ PR ID │
├───┼───────────┼─────────────────────────────────────────────────────────────────────┼───────┤
│ 0 │ gitrepo_1 │ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiu │ 101   │
│ 1 │ gitrepo_2 │ Lorem ipsum dolor sit amet, consectetur adipiscing elit,            │ 100   │
╰───┴───────────┴─────────────────────────────────────────────────────────────────────┴───────╯

                       PRs reviewed between 2022-07-04 and 2022-07-18: 2


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github-stats-0.0.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

github_stats-0.0.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file github-stats-0.0.3.tar.gz.

File metadata

  • Download URL: github-stats-0.0.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for github-stats-0.0.3.tar.gz
Algorithm Hash digest
SHA256 cc0a050a0f99fa7a63dfa4f7ff840b555be420c7837ea98350dc54d63560cac9
MD5 b9807f7a1390ebc29187f67af91dc89e
BLAKE2b-256 bbd767ea4b1b7d4cd129873c23ddeb7cafa198c1b314741c9913607a79136cd2

See more details on using hashes here.

File details

Details for the file github_stats-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: github_stats-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for github_stats-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 99059133c99fc5f24a87ca2bb76b35cab9993f7126da22efd25a59a06f6ba343
MD5 901212995c36b95c39e1a2ec711b8c84
BLAKE2b-256 91bda0d652c488a34e9a26645e06e05af11ec91d8e24a647443675bc68e61879

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page