Skip to content

Interface to simplify PR management on GitHub.

License

Notifications You must be signed in to change notification settings

ArthurHoaro/github-pr-review

 
 

Repository files navigation

Github PR Review

Interface to simplify PR management on GitHub.

How to use

  1. Create a Github's token (here) and select repo scope
  2. Create .env.local from .env
  3. Fill GITHUB_TOKEN with your own token
  4. Depending on if you want to search PRs with labels or filters, you can set USE_MODE with two different value: filter | label
  5. If you choose USE_MODE=label, fill GITHUB_LABELS_* with you own labels for the differents categories
  6. If you choose USE_MODE=filter, fill GITHUB_FILTERS and GITHUB_NOTIFICATIONS_* with you own filters

Demo find by labels

PR list labels

Demo find by filters

PR list filters

Configuration example

GITHUB_AUTH_METHOD=http_token
GITHUB_TOKEN=
GITHUB_REPOS='["username/repo_1", "username/repo_2", "username_2/repo_1"]'
GITHUB_LABELS_CHANGES_REQUESTED='["Changes requested"]'
GITHUB_LABELS_ACCEPTED='["Accepted"]'
GITHUB_LABELS_WIP='["WIP", "Pending answer"]'
GITHUB_BRANCHS_COLORS='[{"master": "warning"}, {"develop": "success"}, {"feature-*": "primary"}, {"release*": "info"}, , {"hotfix-*": "danger"}]'
GITHUB_BRANCH_DEFAULT_COLOR=danger
GITHUB_FILTERS='["is:pr is:open -label:WIP", "is:pr is:draft"]'
GITHUB_NOTIFICATIONS_EXCLUDE_REASONS='["assign", "comment", "invitation"]'
GITHUB_NOTIFICATIONS_EXCLUDE_REASONS_OTHER_REPOS='["review_requested", "state_change"]'

ENABLE_DARK_THEME=1
RELOAD_ON_FOCUS=0
# Reload time is ms
RELOAD_EVERY=60000
# Mode to use : filter | label
USE_MODE=label

If you don't want to reload on focus and reload every x ms, you just need to set RELOAD_ON_FOCUS=0 and RELOAD_EVERY=0.

If you want to search PRs by filters, you can fill GITHUB_FILTERS. You can find a list of available filters here.

To fill GITHUB_NOTIFICATIONS_EXCLUDE_REASONS and GITHUB_NOTIFICATIONS_EXCLUDE_REASONS_OTHER_REPOS you can find the list here.

Installation

Install composer and assets:

make install

Docker commands

Start containers:

make start

Stop containers:

make stop

Connect to PHP's container:

make shell

Check code quality

make check

Contributors

About

Interface to simplify PR management on GitHub.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 58.8%
  • HTML 27.8%
  • JavaScript 6.8%
  • Shell 3.0%
  • Dockerfile 1.4%
  • CSS 1.4%
  • Makefile 0.8%