A CLI for triaging PR's
triage-cli: A command line interface for triaging pull requests.
Usage: triage-cli [OPTIONS]
Options:
-pz, --post-to-zulip Post the report on completion to zulip
-d, --details Add additional details like createdTime to the report
-o, --output [FILENAME] Paste the report in the specified file
-p, --print Print the report after triaging
-h, --help Display this help message
-
-pz
or--post-to-zulip
: Posts the generated report after completion (on sendingq
as a query in thePR num
field) to thet-release/triage
stream with the topic name as the current date. This requires the$ZULIP_EMAIL_ID
and$ZULIP_API_KEY
environment variables to be set, else will error out. -
-d
or--details
: Adds additional details to the pull request in the form of a clickable dropdown menu. The various details that are added into the dropdown menu are -Title
,Last Updated at
,Created at
,Labels
,Status
. -
-p
or--print
: Prints the report as raw markdown to thestdout
instead of saving to a file.
-
Run these commands:
git clone https://github.com/KittyBorgX/triage-cli.git cd triage-cli chmod +x install.py ./install.py
-
Fill up the created
.env
file with the appropriate environment variables or set them as environment variables in your current shell
Or manually:
-
Run the following commands:
git clone https://github.com/KittyBorgX/triage-cli.git cd triage-cli pip install -r requirements.txt cp example.env .env
-
Fill up the created
.env
file with the appropriate environment variables or set them as environment variables in your current shell -
Get your current working directory by running
pwd
-
Open your shellrc file (example:
$HOME/.zshrc
) and add the following:alias tcli="python {cwd}/src/main.py"
-
And replace
{cwd}
with the output ofpwd
. example:alias tcli="python /home/kitty/triage-cli/src/main.py"
- Re-load your current shell or run
source $HOME/.zshrc
if you're in the zsh shell or$source $HOME/.bashrc
All the environment variables that are required to be set are mentioned in example.env.
The values can either be set in the .env
file or can be set as system environment variables.
- GraphQL Github API
- Sorting Pull Requests
- Writing to a backup directory
- Zulip Integration
- Install script
- Better CLI
- Error Messages & Error Handling
- Documentation
- Suggest PR's
- Modifying GitHub Labels
- Unit test
- Setup CI
- RIIR?