{"id":34550256,"url":"https://github.com/nihilok/cr-bot","last_synced_at":"2026-04-14T01:32:12.716Z","repository":{"id":208240825,"uuid":"721142383","full_name":"nihilok/cr-bot","owner":"nihilok","description":"AI-powered Command Line Code Review Tool for PRs and Local Changes","archived":false,"fork":false,"pushed_at":"2024-12-02T00:38:49.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-02T01:27:17.407Z","etag":null,"topics":["ai","bot","code-review","command-line","command-line-tool","completion","github","llm"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nihilok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-20T12:50:34.000Z","updated_at":"2024-12-02T00:38:53.000Z","dependencies_parsed_at":"2024-05-20T12:36:29.672Z","dependency_job_id":"343c0935-7bdf-4580-bb81-6e63c8f7dc08","html_url":"https://github.com/nihilok/cr-bot","commit_stats":null,"previous_names":["nihilok/cr-bot"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nihilok/cr-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihilok%2Fcr-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihilok%2Fcr-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihilok%2Fcr-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihilok%2Fcr-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nihilok","download_url":"https://codeload.github.com/nihilok/cr-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihilok%2Fcr-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31778580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T00:11:49.126Z","status":"ssl_error","status_checked_at":"2026-04-14T00:10:29.837Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ai","bot","code-review","command-line","command-line-tool","completion","github","llm"],"created_at":"2025-12-24T07:57:09.025Z","updated_at":"2026-04-14T01:32:12.703Z","avatar_url":"https://github.com/nihilok.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Review Bot (cr-bot)\n\nThe `cr-bot` is a command line application developed in Rust.\nIt leverages OpenAI models (default gpt-4o-mini) to review changes, either from a PR on GitHub, or a local git diff.\n\n## Installation\n\nYou can compile the bot from source using the following command:\n\n```shell\ncargo build --release\n```\n\nThe resulting binary will be located in the `target/release` directory.\n\n## Requirements\n\nThis program relies on two environment variables to function correctly. Set the following before running the application:\n\n1. `OPENAI_API_KEY`: This is your OpenAI API Key. It allows the program to access the OpenAI API for processing and generating the data.\n\n2. `GH_PR_TOKEN`: This is a GitHub API token with 'repo' scope. It's used to fetch details from pull requests during the reviews. Note that while this is needed for reviewing private repositories, it's not required for public repositories.\n\nEnsure both of these environment variables are properly set in your shell or the environment where this program will run.\n\n## Usage\n\nThe bot can be invoked in two ways:\n\n### Review a GitHub PR\n\nTo review a PR use the following format:\n\n```shell\ncr-bot \u003cowner\u003e \u003crepo\u003e \u003cpr_number\u003e\n```\n\ne.g.\n\n```shell\ncr-bot nihilok cr-bot 9\n```\n\n### Review Local Changes\n\nTo review changes on your current branch against `main`, use the `--local` option:\n\n```shell\ncr-bot --local\n```\n\nFor additional help:\n\n```shell\ncr-bot --help\n```\n\n## Configuration\n\nYou may edit the system message for the bot before compile time by modifying the `src/system-message.txt` file.\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnihilok%2Fcr-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnihilok%2Fcr-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnihilok%2Fcr-bot/lists"}