unknoownu/Z.ai Code Review

AI-powered code review using Z.ai API with inline comments, code suggestions, and PR summaries

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
ZAI_API_KEYZ.ai API keyyes
ZAI_MODELZ.ai model to usenoglm-5.1
ZAI_SYSTEM_PROMPTCustom system prompt for the AI reviewerno""
ZAI_REVIEWER_NAMEDisplay name for the reviewer in commentsnoZ.ai Code Review
GITHUB_TOKENGitHub token for API accessno${{ github.token }}
max_filesMaximum number of files to analyze per PRno20
exclude_patternsComma-separated file patterns to exclude from reviewnopackage-lock.json,yarn.lock,pnpm-lock.yaml,*.min.js,*.min.css,*.bundle.js,*.map
languageLanguage for AI review comments (e.g. en, fr, de, ja, zh, es, ar)noen
auto_approveAutomatically approve PR if no issues foundnofalse
max_commentsMaximum number of inline comments to post per reviewno50
ai_base_urlBase URL for the Z.ai APInohttps://api.z.ai
use_coding_planUse the GLM Coding Plan endpoint instead of the standard APInotrue
enable_thinkingEnable chain-of-thought reasoning for deeper analysis (increases token usage)nofalse
autofix_modeAutofix mode: disabled (default), suggest (render suggestions), or commit (apply fixes directly to branch)nodisabled
incrementalOnly review files changed since the last review (true/false)notrue
chat_enabledEnable /zai-review chat commands in PR comments (true/false)notrue
chat_allowed_rolesComma-separated GitHub roles allowed to use chat commands (OWNER, MEMBER, COLLABORATOR, etc.)noOWNER,MEMBER,COLLABORATOR
namedescription
review_statusThe review verdict: approve, request_changes, or comment
comments_countTotal number of inline comments posted
critical_countNumber of critical severity findings
security_countNumber of security category findings
warning_countNumber of warning severity findings