MCPcopy Create free account
hub / github.com/FastLED/FastLED / check

Function check

ci/tools/coderabbit_addressor.py:206–218  ·  view source on GitHub ↗

Exit non-zero if any unresolved CodeRabbit comments remain. Used by hook.

(pr: int)

Source from the content-addressed store, hash-verified

204
205
206def check(pr: int) -> int:
207 """Exit non-zero if any unresolved CodeRabbit comments remain. Used by hook."""
208 p = plan(pr)
209 buckets = cast(dict[str, list[dict[str, Any]]], p["buckets"])
210 unresolved = buckets["valid-fix"] + buckets["security-flag"]
211 if unresolved:
212 print(
213 f"[address-reviews] {len(unresolved)} unresolved CodeRabbit "
214 f"comment(s) on PR #{pr}. Run /address-reviews before merging.",
215 file=sys.stderr,
216 )
217 return 1
218 return 0
219
220
221def main() -> int:

Callers 1

mainFunction · 0.70

Calls 2

planFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected