mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-08-21 14:44:56 +00:00
Replace the plain-text badge line in GitHub review and summary comments with a single static shields.io badge in the format img.shields.io/badge/<category>-<severity>-<color>, with the color keyed off severity (low green, medium orange, high red, critical darkred). The image renders only when both fields are known enum members; missing or unknown metadata falls back to the existing plain-text badge so arbitrary model output is never hotlinked into an image URL. The image alt text keeps the plain-text badge content for screen readers and image-load failures, the hidden ocr-id marker stays first, and the CLI's buildBadge output is unchanged. |
||
|---|---|---|
| .. | ||
| check-translation-sync.js | ||
| check-translation-sync.test.js | ||
| post-review-comments.js | ||
| post-review-comments.test.js | ||