rafaelqw/Z.ai Code Review
AI-powered code review using Z.ai models
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| ZAI_API_KEY | Z.ai API key | yes | — |
| ZAI_MODEL | Z.ai AI model | no | glm-4.7 |
| ZAI_SYSTEM_PROMPT | Custom system prompt for the AI reviewer | no | You are an expert code reviewer. Review the provided code changes and give clear, actionable feedback. |
| ZAI_REVIEWER_NAME | Name shown in the review comment header | no | Z.ai Code Review |
| EXCLUDE_PATTERNS | Comma-separated file patterns to exclude from review (e.g. '*.lock,dist/**,*.min.js') | no | *.lock,package-lock.json,yarn.lock,pnpm-lock.yaml |
| MAX_DIFF_CHARS | Maximum total characters for the diff sent to the API (0 = unlimited) | no | 0 |
| MAX_FILE_CONTENT_CHARS | Maximum characters per file for full file content sent alongside the diff (0 = disabled, default 20000) | no | 20000 |
| POST_INLINE_COMMENTS | Post findings as inline PR review comments instead of a single summary comment | no | true |
| INCLUDE_PROJECT_INSTRUCTIONS | Read project instruction files (CLAUDE.md, AGENTS.md, etc.) and include them in the review prompt | no | true |
| PROJECT_INSTRUCTION_FILES | Comma-separated list of instruction file names to look for in the repo | no | CLAUDE.md,AGENTS.md,.github/copilot-instructions.md |
| MIN_CONFIDENCE | Minimum confidence percentage (0-100) for a finding to be included in the review | no | 80 |
| TRUSTED_INSTRUCTIONS_REF | Which branch to read instruction files from: 'base' (PR target) or 'head' (PR source) | no | base |
| GITHUB_TOKEN | GitHub token for API access | no | ${{ github.token }} |
Outputs
no outputs