yproximite / pr-review-watcher
An open source tool to help code reviewer's to focus on what's important by reminding the developper to check for obvious things first.
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 8
Forks: 0
Open Issues: 1
Language:JavaScript
Type:project
Requires
- php: >=5.4.0
- deralex/yaml-config-service-provider: ~1.0
- doctrine/dbal: ~2.4
- guzzlehttp/guzzle: ~6.0
- silex/silex: ~1.3
- symfony/config: ~2.7
- symfony/form: ~2.7
- symfony/security: ~2.7
- symfony/security-csrf: ~2.7
- symfony/translation: ~2.7
- symfony/twig-bridge: ~2.7
- symfony/validator: ~2.7
- symfony/var-dumper: ~2.7
- symfony/yaml: ~2.7
- twig/twig: ~1.16
- dev-master
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.0
- dev-dependabot/composer/symfony/http-foundation-2.8.52
- dev-develop
- dev-feature/SameUser_DifferentBranch
- dev-feature/FA_icon
- dev-feature/fixTestOwnerToken
- dev-feature/configExample
- dev-feature/twig_error
- dev-feature/readme
- dev-feature/gitkeep
- dev-feature/reviewer
- dev-dev
- dev-test
This package is auto-updated.
Last update: 2020-09-09 10:12:54 UTC
README
- What the purpose of this project ?
- Screenshots
- How to install the project
- Configuration
- Security
- Credential
- Project
- Vhost
Native Github Support
A few month ago, Github released a new feature that supports pull request templates. You should checkout the Documentation and see if it suits your need.
What the purpose of this project ?
The PR Review Watcher will post a list of checks you've defined as a Pull Request comment when a new pull request is created
The project can save you time when it comes to pull request reviews:
- avoid common pitfall/mistakes a developer can make
- make sure the developper has reviewed his own code
The list of checks are fully customizable. No github credential's needed (just tokens, which are more secure).
Screenshots
How to install the project
Simply install the project via composer: composer require yproximite/pr-review-watcher
Configuration
Security
Enter your desired login/sha1 password inside the file config/config.yml
(cp config/config.yml.example
to config/config.yml
in order to access to the application.
You can generate your sha1 password at sha1.
Credential
First of all, you'll need a Github Token in order to post comments.
Check out the GitHub documentation to see how to create one.
Project
Then you add a project you want to hook into. Configure Github webhook by following this example :
- Inside your GitHub project, go to settings then to webhooks & services.
- Enter the url of the application +
/api
Example :https://[url_of_the_application]/api
, selectapplication/json
and choose only the event Pull Request.
You can configure when to post comment on new pull request:
- Post a checklist on a pull request only if it's opened against
develop
branch: enter "develop" in the field configured branches - Post a checklist on a pull request opened against all branches: enter "all"
Vhost
nginx example:
server {
listen 80;
server_name your.domain.name;
access_log /var/log/nginx/pr_watcher.access.log;
error_log /var/log/nginx/pr_watcher.error.log;
root path/of/project/web;
index index.php;
location ~ /\.ht {
deny all;
}
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
}