• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

hyperoslo/code-review: A simple application that selects a random commit for cod ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

hyperoslo/code-review

开源软件地址:

https://github.com/hyperoslo/code-review

开源编程语言:

Ruby 84.2%

开源软件介绍:

Code review

Build Status Code Climate Coverage Status

We ship a lot of code at Hyper, and we're proud of every bit of it. We built this simple application to select random commits for review whenever we push code so we can show it off or ridicule @espenhogbakk whenever he version controls his passwords.

Example

Usage

Create a post-receive hook to hit your code review application and specify the service you're using in the service parameter (e.g. http://review.example.org/?service=github).

GitHub

Set the content type for your push-event hook to application/x-www-form-urlencoded. Other content types, such as application/json, are currently not supported.

On creation of a new webhook, GitHub will send a ping event. This is currently not handled appropriately, but its failure can be safely ignored.

Configuration

The application looks to the following environment variables for its configuration:

  • SENDER - A string describing the sender's name and email address (e.g Hyper <[email protected]>).
  • ODDS - A string of the format "x:y" that describes the likelihood that a commit will be selected for review (e.g. 1:25).
  • REVIEWERS - A comma-separated list of e-mail addresses that code reviews may be addressed to (e.g. [email protected],[email protected]).
  • SMTP_HOST - A string describing the SMTP host.
  • SMTP_PORT - A string describing the SMTP port.
  • SMTP_DOMAIN - A string describing the SMTP domain.
  • SMTP_USERNAME - A string describing the SMTP username.
  • SMTP_PASSWORD - A string describing the SMTP password.
  • GITLAB_PRIVATE_TOKEN - A string describing a GitLab private token.
  • GUARANTEED_REVIEW - A string that will automatically qualify commits for review (defaults to please review).

Control over branches with post-receive hook URL params:

Development

Install the dependencies:

$ bundle install

Run the tests:

$ bundle exec rake test

Run the server:

$ bundle exec rackup

Credits

Hyper made this. We're a digital communications agency with a passion for good code, and if you're using this application we probably want to hire you.

License

Code review is available under the MIT license. See the LICENSE file for more info.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap