Skip to content

figarocorso/gh-daily-spam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-daily-spam

This is a small and ugly Python CLI tool to review and, approve or comment, Github pull requests from a single repo.

Why? Because GH notifications could be overwhelming and you would like to review few specific PRs with more attention. Also default messages and "approval by single <enter> key" will save you a bunch of time.

Contributing

PRs are more than welcome. Color schema, filters, GH API usage, user interaction, tests coverage, ... everything can be improved. Any big feature (like showing the diff at the terminal) should probably be better under a feature flag. As tool is working fine for me, if you are considering adding any code, contact me anyhow so we avoid conflicts (or developing the same fix/feature).

How to run

First things first: edit your config.json file with your customizations

Then you just need to download the dependencies (consider using a virtualenv) and run the tool:

python gh-daily-spam.py

You can <CONTROL>+c at any time, CLI should exit, most of the times, in a exception-less way.

image

image

Current workflow

  • Tool retrieves PRs from the last week (depending on filters available)
  • Then iterates over every one of all those PRs:
    • Show PR info and asks if you want to open it at your default browser
    • If affirmative you should be able to review it at your browser and Approve/Comment/Skip the PR
    • For approval and comment you will be asked for default comment or custom one

No info is stored (beyond your own config.json) so do not expect any magic with the skip option.

Filters

Current MVP has hardcoded at filter_methods.py those filters that were useful to the author. Feel free to edit that file (it should be pretty straighforward) commenting the dict we are iterating at or changing/adding methods. After updating this readme, next task is to describe the desired filters at the config.json file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages