Skip to main content

PReam-Team is a TUI utility that lists out open GitHub PRs for your team.

Project description

PReam-Team

A TUI utility that lists open github PRs for your team. banner

Get it

python3 -m pip install  pream-team --upgrade

How to

You need a GitHub personal access token with full repo scope and with admin org read access if you want to specify org value.

Besides the token you also need to provide a list of github usernames. You can do that through command line or yaml config file (see below).

pream-team will also dispay a list of pull requests where you (username specified by 'me' value in cli or yaml) or your team (team name specified by 'my_team') has been added as a reviewer. You can see those by clicking on 'Review requested' button on the top right of the TUI.

If you provide org value, pream-team will fetch only the prs for repos that belong to the org. If you provide me value, pream team will print out your approval status for the pull request ('v', '@', 'x' for approved, commented, chages requeted) followed by the number of approvals for the PR eg. [v|2] [draft|repo-name] - pr title. If you dont provide the me value, you will only get the number of approvals eg. [2] [draft|repo-name] - pr title

Command line options:

options:
  -h, --help            show this help message and exit
  --names NAMES [NAMES ...]
                        List of GitHub usernames.
  --days DAYS           Number of past days to search for PRs.
  --token TOKEN         GitHub API token.
  --org ORG             GitHub organization name.
  --me ME               Your GitHub username.
  --my_team MY_TEAM     name of your gh team. used to check for review requests that requested team review but
                        not you explicitly.
  --file FILE           Path to YAML file containing 'names', 'days', 'token' and 'org' fields. (Note that command line
                        arguments override YAML file configuration)

Or through a yaml file (default location is ~/.prs/config.yml):

org: some-org # optional
token: some-token # required
days-back: 25 # optional
me: username # optional
my_team: team-name # optional
names: # required (at least one)
  - "Teamamte-username-1"
  - "Teamamte-username-2"
  - "Teamamte-username-3"

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

pream_team-1.3.0.tar.gz (72.3 kB view details)

Uploaded Source

Built Distribution

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

pream_team-1.3.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file pream_team-1.3.0.tar.gz.

File metadata

  • Download URL: pream_team-1.3.0.tar.gz
  • Upload date:
  • Size: 72.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pream_team-1.3.0.tar.gz
Algorithm Hash digest
SHA256 2d99bbb4f24455e3356469fcaa6dafd61a212923e37962d0caa986231046fd1c
MD5 7cbb6356b905f2139ba95ceb70286eb4
BLAKE2b-256 43621c4853c9251661d6fe3595756c194e520b7aa4cc6171bb68d21f900b81d0

See more details on using hashes here.

File details

Details for the file pream_team-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: pream_team-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pream_team-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca9fbf976d4318ef80a205149e848a94f9c12a303ed4a81e0aa243d3a021095a
MD5 bff8d19fbe18405cba84f55795c8c881
BLAKE2b-256 65fd831b6db86c063d8d29cb9ffcfc7fc7a9fddf18556f223bda38cc60e40f5a

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