{"id":47495688,"url":"https://github.com/tarmojussila/zai-code-review","last_synced_at":"2026-04-13T22:07:48.603Z","repository":{"id":340016226,"uuid":"1163987910","full_name":"tarmojussila/zai-code-review","owner":"tarmojussila","description":"Z.ai Code Review for GitHub Actions","archived":false,"fork":false,"pushed_at":"2026-04-12T19:14:20.000Z","size":659,"stargazers_count":34,"open_issues_count":4,"forks_count":19,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-04-12T19:24:08.667Z","etag":null,"topics":["ai","ai-assisted","ai-code-review","automation","ci-cd","code-quality","code-review","github-actions","glm","llm","pull-request","zai"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tarmojussila.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-22T13:20:05.000Z","updated_at":"2026-04-07T07:42:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tarmojussila/zai-code-review","commit_stats":null,"previous_names":["tarmojussila/zai-code-review"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tarmojussila/zai-code-review","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarmojussila%2Fzai-code-review","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarmojussila%2Fzai-code-review/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarmojussila%2Fzai-code-review/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarmojussila%2Fzai-code-review/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarmojussila","download_url":"https://codeload.github.com/tarmojussila/zai-code-review/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarmojussila%2Fzai-code-review/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31772710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: 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","ai-assisted","ai-code-review","automation","ci-cd","code-quality","code-review","github-actions","glm","llm","pull-request","zai"],"created_at":"2026-03-27T02:00:22.415Z","updated_at":"2026-04-13T22:07:48.597Z","avatar_url":"https://github.com/tarmojussila.png","language":"JavaScript","funding_links":[],"categories":["Code Review and Refactoring","Automated Workflows"],"sub_categories":["PR \u0026 Code Review Bots"],"readme":"# Z.ai Code Review\n\nAI-powered GitHub Pull Request code review using Z.ai models. Automatic PR comments, bug detection, and improvement suggestions via GitHub Actions.\n\n## Features\n\n- 🚀 Detect bugs\n- 🔍 Suggest improvements\n- 🧠 AI-driven PR feedback\n- ⚡ Works with GitHub Actions\n\n## Quickstart\n\nAdd this to your `.github/workflows/code-review.yml`:\n\n```yaml\nname: AI Code Review with Z.ai\n\non:\n  pull_request:\n    types: [opened, synchronize]\n\npermissions:\n  pull-requests: write\n\njobs:\n  review:\n    name: Review\n    runs-on: ubuntu-latest\n    steps:\n      - name: Code Review\n        uses: tarmojussila/zai-code-review@v0.3.0\n        with:\n          ZAI_API_KEY: ${{ secrets.ZAI_API_KEY }}\n```\n\n## Inputs\n\n| Input | Required | Default | Description |\n|---|---|---|---|\n| `ZAI_API_KEY` | Yes | — | Your Z.ai API key |\n| `ZAI_MODEL` | No | `glm-4.7` | Z.ai model to use for review |\n| `ZAI_SYSTEM_PROMPT` | No | See below | Custom system prompt for the AI reviewer |\n| `ZAI_REVIEWER_NAME` | No | `Z.ai Code Review` | Name shown in the review comment header |\n\nThe default system prompt is:\n\n\u003e You are an expert code reviewer. Review the provided code changes and give clear, actionable feedback.\n\nYou can override it to focus on specific concerns, enforce coding standards, or adjust the review tone, e.g.:\n\n\u003e You are a security-focused code reviewer. Identify vulnerabilities, unsafe patterns, and authentication issues. Skip style comments.\n\n## Configuration\n\nTo use this action, you must add your Z.ai API key as a GitHub secret.\n\n### 1️⃣ Get your Z.ai API key\n\nGenerate an API key from your Z.ai dashboard.\n\n### 2️⃣ Add the API key to your repository\n\n1. Go to your GitHub repository  \n2. Click **Settings**  \n3. Navigate to **Secrets and variables → Actions**  \n4. Click **New repository secret** and add:\n\n   - **Name:** `ZAI_API_KEY` — **Value:** your Z.ai API key\n\n## Advanced configuration\n\nInstead of using default values for `ZAI_MODEL`, `ZAI_SYSTEM_PROMPT`, and `ZAI_REVIEWER_NAME`, you can override them, and manage them as GitHub Actions variables. This lets you update the model, review prompt, or reviewer name without touching the workflow file.\n\n### 1️⃣ Add the variables to your repository\n\n1. Go to your GitHub repository\n2. Click **Settings**\n3. Navigate to **Secrets and variables → Actions**\n4. Click the **Variables** tab\n5. Click **New repository variable** and add:\n\n   - **Name:** `ZAI_MODEL` — **Value:** e.g. `glm-4.7`\n   - **Name:** `ZAI_SYSTEM_PROMPT` — **Value:** your custom system prompt\n   - **Name:** `ZAI_REVIEWER_NAME` — **Value:** e.g. `AI Code Review`\n\n### 2️⃣ Reference them in your workflow\n\n```yaml\n      - name: Code Review\n        uses: tarmojussila/zai-code-review@v0.3.0\n        with:\n          ZAI_API_KEY: ${{ secrets.ZAI_API_KEY }}\n          ZAI_MODEL: ${{ vars.ZAI_MODEL }}\n          ZAI_SYSTEM_PROMPT: ${{ vars.ZAI_SYSTEM_PROMPT }}\n          ZAI_REVIEWER_NAME: ${{ vars.ZAI_REVIEWER_NAME }}\n```\n\n## Contributing\n\nContributions are welcome. See the [CONTRIBUTING](CONTRIBUTING.md) file for more information.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarmojussila%2Fzai-code-review","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarmojussila%2Fzai-code-review","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarmojussila%2Fzai-code-review/lists"}