{"id":19710471,"url":"https://github.com/rootstrap/rs-code-review-metrics","last_synced_at":"2025-04-29T17:31:18.537Z","repository":{"id":37771283,"uuid":"228452889","full_name":"rootstrap/rs-code-review-metrics","owner":"rootstrap","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-16T20:47:57.000Z","size":3075,"stargazers_count":9,"open_issues_count":24,"forks_count":3,"subscribers_count":14,"default_branch":"develop","last_synced_at":"2025-04-17T07:40:43.623Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rootstrap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-16T18:47:31.000Z","updated_at":"2024-10-31T20:30:22.000Z","dependencies_parsed_at":"2024-11-01T19:27:31.734Z","dependency_job_id":null,"html_url":"https://github.com/rootstrap/rs-code-review-metrics","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/rootstrap%2Frs-code-review-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootstrap%2Frs-code-review-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootstrap%2Frs-code-review-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootstrap%2Frs-code-review-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootstrap","download_url":"https://codeload.github.com/rootstrap/rs-code-review-metrics/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251549190,"owners_count":21607367,"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-11T22:07:28.194Z","updated_at":"2025-04-29T17:31:15.560Z","avatar_url":"https://github.com/rootstrap.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Code Review Metrics   [![Travis Build](https://travis-ci.com/rootstrap/rs-code-review-metrics.svg?branch=develop)](https://travis-ci.com/rootstrap/rs-code-review-metrics) [![CodeClimate Maintainability](https://api.codeclimate.com/v1/badges/bc6808c1200913bcb29c/maintainability)](https://codeclimate.com/github/rootstrap/rs-code-review-metrics/maintainability) [![CodeClimate Coverage](https://api.codeclimate.com/v1/badges/bc6808c1200913bcb29c/test_coverage)](https://codeclimate.com/github/rootstrap/rs-code-review-metrics/test_coverage)\n=========\n\n## Features\n\nThis project comes with:\n- Administration panel for users\n- Rspec tests\n- Code quality tools\n- Exception Tracking (Exception Hunter https://github.com/rootstrap/exception_hunter)\n\n## How to use\n\n1. Clone this repo\n1. Install PostgreSQL in case you don't have it\n1. Create `.env` file with env variables and `database.yml`\n1. Create DB tables and seed data `rake db:create` `rake db:migrate` `rake db:seed`\n1. Install dependencies: `yarn` or `npm install`\n1. `rspec` and make sure all tests pass\n1. `rails s`\n\n**IMPORTANT: At the moment of running the tests**\n\n1. You will need to have redis installed.\n\nOn Mac:\n```\nbrew install redis\nbrew services start redis\n```\n\n2. You'll need SUPERUSER permissions on postgresql for the defined user.\n\nEither assign superuser permissions to `postgres` or update the env vars: `GITHUB_ANALYZER_USERNAME` and `GITHUB_ANALYZER_PASSWORD`\n## Tasks\n- `rake code_climate:link` is run only to update repositories' Code Climate repository ids.\n\n## Scheduled tasks\n- `code_owners_list` runs at 23:00 on every day-of-week from Monday through Friday.\n- `external_contributions_processor` runs at 05:00 on every day-of-week from Monday through Friday.\n- `jira_defect_metrics_updater` runs at 06:00 on every day-of-week from Monday through Friday.\n- `open_source_metrics_update` runs at 06:00.\n- `organization_members_updater` runs at 05:00 on every day-of-week from Monday through Friday.\n- `send_open_source_notification` runs at 10:00 every Friday.\n- `repositories_update` runs at 05:40 every Saturday.\n\n## Settings\n\n### Success Rates Settings\n- Department\n  - In order to change Department Success Rates time limit setting, create a new `Setting` with key prefix `success_rate`, followed by the department name and the metric name.\n  - Example: `Setting.create!(key: 'success_rate_backend_merge_time', value: '12')`\n  Possible values: 12 | 24 (default) | 36 | 48 | 60 | 72\n- Repository\n  - In order to change Repository Success Rates time limit setting, create a new `Setting` with key prefix `success_rate_`, followed by the repository name and the metric name.\n  - Example: `Setting.create!(key: 'success_rate_rs-code-review-metrics_merge_time', value: '12')`\n  Possible values: 12 | 24 (default) | 36 | 48 | 60 | 72\n\n### Enabled Features Settings\nPossible values: true | false (default)\n\n- `enabled_users_section` enables Users section at Development Metrics sidebar.\n- `enabled_department_per_tech_graph` enables Department per technology detail graph.\n- `enabled_repository_codeowners_section` enables Repository codeowners section.\n- `enabled_repository_per_user_graph` enables Repository per-user detail graphs.\n\n## Code quality\n\nWith `rake code_analysis` you can run the code analysis tool, you can omit rules with:\n\n- [Rubocop](https://github.com/bbatsov/rubocop/blob/master/config/default.yml) Edit `.rubocop.yml`\n- [Reek](https://github.com/troessner/reek#configuration-file) Edit `config.reek`\n- [Rails Best Practices](https://github.com/flyerhzm/rails_best_practices#custom-configuration) Edit `config/rails_best_practices.yml`\n- [Brakeman](https://github.com/presidentbeef/brakeman) Run `brakeman -I` to generate `config/brakeman.ignore`\n- [Bullet](https://github.com/flyerhzm/bullet#whitelist) You can add exceptions to a bullet initializer or in the controller\n\n## Code Coverage\nRun `open coverage/index.html` in terminal to see coverage values\n\n## Production\n\nHome Page url: http://engineering-metrics.herokuapp.com/\nException Hunter dashboard: https://engineering-metrics.herokuapp.com/exception_hunter/errors\nAdmin: https://engineering-metrics.herokuapp.com/admin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootstrap%2Frs-code-review-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootstrap%2Frs-code-review-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootstrap%2Frs-code-review-metrics/lists"}