Skip to main content

A simple CLI tool to check PR statuses on GitHub

Project description

PR Checker

pr-checker is a CLI tool to check the status of pull requests on GitHub for a specified user or team. It supports initializing configuration, updating specific configuration parts, and checking the status of PRs.

Features

  • Initialize configuration with GitHub username, token, team usernames, and repositories.
  • Update specific parts of the configuration such as GitHub token, username, team usernames, and repositories.
  • Check the status of open and closed pull requests for specified date ranges.

Installation

Install the package using pip:

pip install pr-checker

Prerequisites

You'll need to create a personal access token for Github. Visit the Fine-grained personal access tokens page in your GitHub settings. Create a token with read access to all the repositories you are wanting to check.

Usage

Initialize Configuration

The first time you use pr-checker, you need to initialize the configuration:

pr-checker --init

This will prompt you to enter your GitHub username, token, team usernames, and repositories to check.

Update Configuration

You can update specific parts of the configuration as needed.

Update GitHub Token

pr-checker --update --set-token NEW_TOKEN

Update GitHub username

pr-checker --update --set-username NEW_USERNAME

Update Team Usernames

pr-checker --update --set-team "user1,user2"

Update repositories

pr-checker --update --set-repos "Repo1/repo1, Repo2/repo2"

Check Pull Requests

You can check the status of pull requests using various options.

Default

No options checks PRs in all repos for both you and your team for the last 7 days.

pr-checker

Check Open Pull Requests for a Specific Date Range

pr-checker --status open --start-date 2022-01-01 --end-date 2022-01-31 --who me

Get only your pull requests

pr-checker --who team

Arguments

  • --init: Initialize the configuration.
  • --update: Update the configuration.
    • --set-username: Set the GitHub username.
    • --set-token: Set the GitHub token.
    • --set-team: Set the team usernames (comma-separated).
    • --set-repos: Set the repositories to check (comma-separated).
  • --status: Status of the PRs (open or closed). Leave blank for both.
  • --start-date: Start date for the PRs.
  • --end-date: End date for the PRs.
  • --who: Who to check PRs for (me or team). Leave blank for team (includes me)

License

This project is licensed under the MIT License.

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

pr_checker-0.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

pr_checker-0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pr_checker-0.2.tar.gz.

File metadata

  • Download URL: pr_checker-0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.10

File hashes

Hashes for pr_checker-0.2.tar.gz
Algorithm Hash digest
SHA256 3d4957bd32a9999d4470d80f4c41ab22aad9d6c2cd82b1e2011effd0c9cfd02d
MD5 e50aa84c308119afb97e432059ab86d8
BLAKE2b-256 aab9fb48a42ffc9c475912f7c1db335c551b1bd9841ed515a5182a12db334b1e

See more details on using hashes here.

File details

Details for the file pr_checker-0.2-py3-none-any.whl.

File metadata

  • Download URL: pr_checker-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.10

File hashes

Hashes for pr_checker-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 342d50a5b373651415f24436fb7d2d81764a072279360619e183f583ae2ac044
MD5 468c55becdb7eb2aeff34c9fbad2039a
BLAKE2b-256 7619ec42ba1d5eb9d1e95a6ec0251b135db0fa108e777637c4a7c36003c81602

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