mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-09-14 19:59:52 +08:00
0a74720560
* feat(action): expose effort and max_tokens_budget as inputs - Add validated, case-insensitive effort and base-10 max_tokens_budget workflow inputs, forwarded to ocr review as --effort and --max-tokens-budget; empty values omit the flags so CLI defaults apply - Reject an explicit effort input on ocr older than v1.10.0, where the flag first shipped, instead of dying on an unknown flag - Join both axes to the checkpoint config fingerprint Closes #1147 Signed-off-by: thxCode <thxcode0824@gmail.com> * feat(action): opt-in live review progress via stream_progress - add stream_progress input (true|false, case-insensitive, default 'false'), validated and normalized in the Validate inputs step - the default keeps the original behavior: --audience agent in the review args, stderr captured to /tmp/ocr-stderr.log with no live tee - stream_progress=true drops --audience agent so human-audience routing sends [ocr] progress lines to stderr while the result JSON stays on stdout; a FIFO feeds a background tee so progress streams live into the workflow log and is still captured to /tmp/ocr-stderr.log for artifacts and the posting step - the tee runs as a real background job and is awaited before the log file is read, so the capture is fully flushed; OCR_EXIT_CODE is unaffected in either mode Task 2 of action-review-controls. Signed-off-by: thxCode <thxcode0824@gmail.com> * feat(action): first-class llm_reasoning_effort input - Merge llm_reasoning_effort into the effective llm.extra_body via node in the Configure step, riding the existing extra_body merge so any published CLI supports it; an explicit reasoning_effort key in llm_extra_body wins - Reject llm_reasoning_effort on the anthropic protocol, and reject a malformed or non-object llm_extra_body with an actionable ::error:: - Fingerprint the normalized effort, max_tokens_budget, and llm_reasoning_effort values instead of the raw inputs, so equivalent spellings keep the checkpoint - Keep the last 20000 characters of stderr in the unparseable-result summary so streamed progress cannot push the error report past GitHub's comment limit - Document the new action inputs on the CI/CD docs page (en/zh/ja/ko/ru) Closes #1149 Signed-off-by: thxCode <thxcode0824@gmail.com> --------- Signed-off-by: thxCode <thxcode0824@gmail.com>
CI/CD Integration Examples
This directory contains examples for integrating OpenCodeReview (OCR) into various CI/CD pipelines.
Contents
- github_actions/ - GitHub Actions integration example
- gitlab_ci/ - GitLab CI integration example
- bitbucket_pipelines/ - Bitbucket Pipelines integration example
- gitflic_ci/ - GitFlic CI integration example
- gerrit_ci/ - Gerrit (Jenkins / Gerrit Trigger) integration example
Each subdirectory contains its own README with detailed setup instructions.