mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-30 03:24:34 +00:00
|
Some checks are pending
CI / test (push) Waiting to run
CI / cross-compile (amd64, darwin) (push) Waiting to run
CI / cross-compile (amd64, windows) (push) Waiting to run
CI / cross-compile (arm64, darwin) (push) Waiting to run
CI / cross-compile (arm64, linux) (push) Waiting to run
CI / cross-compile (arm64, windows) (push) Waiting to run
Add category/severity-aware, fail-open publication controls to the reusable GitHub Action: render a CLI-consistent `[category · severity]` badge on every comment, and add one opt-in routing destination that moves low-severity or selected-category findings from inline comments to the PR summary. No finding is ever silently dropped: unknown/malformed metadata on a finding never matches the policy (routes to its normal inline destination), and a malformed policy itself degrades to no-routing. A new `routed` accounting bucket is disjoint from summary/skipped/failed, so destination counts still sum to the raw input total. - buildBadge: byte-matches the CLI's buildBadge degeneration ([cat · sev] / [cat] / [sev] / ""), with control-char sanitization that is intentionally stricter than the CLI (strips \t/\n to defend Markdown layout). - buildPolicy / routeComment: pure fail-open policy decision. A finding matches when its severity is at-or-below the threshold OR its category is in the list; unknown metadata never matches. - Partition loop: routing is a placement decision (route OUT of reviewComments), so routed findings never enter any createReview write path (no double-post on retry) and carry no idempotency id. - Accounting: new comments_routed output and summary bullet; render order is counts -> no-line -> routed -> failed. - action.yml: opt-in route_severity_below and route_categories string inputs (empty defaults = today's behavior) plus the comments_routed output. With no routing input set, behavior is byte-equivalent to today except for the additive badge prefix on comments that carry category/severity metadata. |
||
|---|---|---|
| .. | ||
| github-actions | ||
| publish | ||
| install.js | ||
| platform.js | ||
| update.js | ||