Download the PHP package nyholm/git-reviewer without Composer
On this page you can find all versions of the php package nyholm/git-reviewer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nyholm/git-reviewer
More information about nyholm/git-reviewer
Files in nyholm/git-reviewer
Package git-reviewer
Short Description Find a good reviewer to your github pull request
License MIT
Informations about the package git-reviewer
Find reviewers
This is a small PHP (Symfony) application that find you reviewers to a Github pull request.
It is using a naive algorithm which:
- First looks at the modified files in the PR
- Do a
git blame
on each file to see who as modified the file - Sort the list of contributor, first contributor is the person that have changed the most files that the pull request touches
Documentation
The first argument to ./git-reviewer.php
is the "command name". Here is a short
description of each command name and their additional arguments and options.
cache:clear
Clears the application's cache. It does not clear the var/storage
.
pull-request:base
Finds the branch that the pull request target.
find
Get a list of possible reviewers.
Options:
Name | Example | Description |
---|---|---|
after | 2020-01-01 | Only look at contributions after a specific date. |
ignore-path | .env "config/*" "src/**/Tests" |
Exclude paths and files when searching for contributors. An astrix matches everything but "/" and double astrix matches everything. |
no-username | Don't search for the users' username. You will only get name and email. | |
pretty-print | Make the output more easy to read for humans. |
Calls to Github API
Github allows some anonymous calls, but it is a good idea to specify an environment
variable named GITHUB_TOKEN
. That should contain a Github token with "api" permissions.
You can create such token in your Github account under "Developer settings > Personal access tokens".
All versions of git-reviewer with dependencies
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/config Version ^6.4 || ^7.0
symfony/yaml Version ^6.4 || ^7.0
symfony/event-dispatcher Version ^6.4 || ^7.0
symfony/filesystem Version ^6.4 || ^7.0
symfony/http-client Version ^6.4 || ^7.0
nyholm/psr7 Version ^1.3
knplabs/github-api Version ^v3.13.0
symfony/process Version ^6.4 || ^7.0
symfony/cache Version ^6.4 || ^7.0
bref/logger Version ^1.0