yproximite/pr-review-watcher
最新稳定版本:v1.3.0
Composer 安装命令:
composer create-project 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.
README 文档
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 +
/apiExample :https://[url_of_the_application]/api, selectapplication/jsonand 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
developbranch: 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;
}
}
yproximite/pr-review-watcher 适用场景与选型建议
yproximite/pr-review-watcher 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 13 次下载、GitHub Stars 达 6, 最近一次更新时间为 2015 年 06 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「code」 「github」 「request」 「review」 「watcher」 「pull」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 yproximite/pr-review-watcher 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 yproximite/pr-review-watcher 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 yproximite/pr-review-watcher 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Memio's PrettyPrinter, used to generate PHP code from given Model
Handles basic OAuth/OAuth2 authentication along with classes for common services
MediaWiki extension that allows embedding external content, specified by URL, into your wiki pages
HTTP request logger middleware for Laravel
Adds request-parameter validation to the SLIM 3.x PHP framework
Promotional Codes Generator for Laravel 5.1
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-25