{"id":19319768,"url":"https://github.com/hyperoslo/code-review","last_synced_at":"2025-09-12T22:38:18.131Z","repository":{"id":7991847,"uuid":"9398227","full_name":"hyperoslo/code-review","owner":"hyperoslo","description":"A simple application that selects a random commit for code review.  ","archived":false,"fork":false,"pushed_at":"2015-08-31T09:41:42.000Z","size":887,"stargazers_count":14,"open_issues_count":3,"forks_count":5,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-05-09T16:37:14.627Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperoslo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-12T16:06:44.000Z","updated_at":"2024-05-09T16:37:14.628Z","dependencies_parsed_at":"2022-08-03T02:30:41.764Z","dependency_job_id":null,"html_url":"https://github.com/hyperoslo/code-review","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fcode-review","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fcode-review/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fcode-review/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Fcode-review/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperoslo","download_url":"https://codeload.github.com/hyperoslo/code-review/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223902227,"owners_count":17222335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T01:25:13.326Z","updated_at":"2024-11-10T01:25:13.890Z","avatar_url":"https://github.com/hyperoslo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code review\n\n[![Build Status](https://img.shields.io/travis/hyperoslo/code-review.svg?style=flat)](https://travis-ci.org/hyperoslo/code-review)\n[![Code Climate](https://img.shields.io/codeclimate/github/hyperoslo/code-review.svg?style=flat)](https://codeclimate.com/github/hyperoslo/code-review)\n[![Coverage Status](https://img.shields.io/coveralls/hyperoslo/code-review.svg?style=flat)](https://coveralls.io/r/hyperoslo/code-review)\n\nWe ship a lot of code at Hyper, and we're proud of every bit of it. We built this simple application to\nselect random commits for review whenever we push code so we can show it off or\nridicule [@espenhogbakk](https://github.com/espenhogbakk) whenever he version controls his passwords.\n\n![Example](https://raw.github.com/hyperoslo/code-review/master/doc/example.png)\n\n## Usage\n\nCreate a post-receive hook to hit your code review application and specify the service you're using\nin the `service` parameter (e.g. `http://review.example.org/?service=github`).\n\n### GitHub\n\nSet the content type for your push-event hook to `application/x-www-form-urlencoded`. Other\ncontent types, such as `application/json`, are currently [not supported](https://github.com/hyperoslo/code-review/issues/24).\n\nOn creation of a new webhook, GitHub will [send a ping event](https://developer.github.com/changes/2014-2-10-ping-event-for-webhooks/). This is currently\nnot handled appropriately, but its failure can be safely ignored.\n\n\n## Configuration\n\nThe application looks to the following environment variables for its configuration:\n\n* `SENDER` - A string describing the sender's name and email address (e.g `Hyper \u003cno-reply@hyper.no\u003e`).\n* `ODDS` - A string of the format \"x:y\" that describes the likelihood that a commit will be selected for review (e.g. `1:25`).\n* `REVIEWERS` - A comma-separated list of e-mail addresses that code reviews may be addressed to (e.g. `john@work.com,jane@work.com`).\n* `SMTP_HOST` - A string describing the SMTP host.\n* `SMTP_PORT` - A string describing the SMTP port.\n* `SMTP_DOMAIN` - A string describing the SMTP domain.\n* `SMTP_USERNAME` - A string describing the SMTP username.\n* `SMTP_PASSWORD` - A string describing the SMTP password.\n* `GITLAB_PRIVATE_TOKEN` - A string describing a GitLab private token.\n* `GUARANTEED_REVIEW` - A string that will automatically qualify commits for review (defaults to `please review`).\n\nControl over branches with post-receive hook URL params:\n\n* `only_branches` - single branch name or list of comma-separated branches (e.g. http://review.example.org/?service=github\u0026only_branches=master,dev). Commits only from listed branches will be selected for code review.\n* `except_branches` - works opposite to the previous option (e.g. http://review.example.org/?service=github\u0026except_branches=master,dev).\n\n## Development\n\nInstall the dependencies:\n\n    $ bundle install\n\nRun the tests:\n\n    $ bundle exec rake test\n\nRun the server:\n\n    $ bundle exec rackup\n\n## Credits\n\nHyper made this. We're a digital communications agency with a passion for good code,\nand if you're using this application we probably want to hire you.\n\n## License\n\nCode review is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperoslo%2Fcode-review","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperoslo%2Fcode-review","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperoslo%2Fcode-review/lists"}