Name | Updated at | |
---|---|---|
README.md | ||
logo.png | ||
plugin-meta.json |
支持使用 AI 进行四类操作,代码评审、PR 标题和描述的可读性检测、提交注释可读性检测、变更总结
cnbcool/ai-review
type
: 操作类型,默认为 code-review
code-review
: 代码评审pr-info-readability-check
: PR 标题和描述的可读性检测commit-message-readability-check
: 提交注释可读性检测diff-summary
: 变更总结message
: type=commit-message-readability-check
时,可指定 message
参数,表示提交注释,
不指定默认取 CNB_COMMIT_MESSAGE
pr-info-readability-check
: 输出环境变量名 status
,值为 yes 或 nocommit-message-readability-check
: 输出环境变量名 status
,值为 yes 或 nodiff-summary
: 输出环境变量名 summary
,表示变更总结内容main:
pull_request:
- stages:
- name: 代码评审
image: cnbcool/ai-review:latest
settings:
type: code-review
main:
pull_request:
- stages:
- name: 标题和描述的可读性检测
image: cnbcool/ai-review:latest
settings:
type: pr-info-readability-check
exports:
status: STATUS
- name: 标题和描述的可读性检测结果
script: echo $STATUS
main:
push:
- stages:
- name: 提交注释的可读性检测
image: cnbcool/ai-review:latest
settings:
type: commit-message-readability-check
exports:
status: STATUS
- name: 提交注释的可读性检测结果
script: echo $STATUS
main:
pull_request:
- stages:
- name: 变更总结
image: cnbcool/ai-review:latest
settings:
type: diff-summary
exports:
summary: SUMMARY
- name: 变更总结
script: echo $SUMMARY