feat: expose explicit CLA pass result - #9
Conversation
lawrence703
left a comment
There was a problem hiding this comment.
Reviewed exact head 8e1d05b against base b4d3c4f. The new cla_passed output is false by default and for preflight, unsigned, closed, and error paths; it becomes true only after final all-signed validation and successful bot-comment application, including empty-ledger bootstrap. signature_recorded semantics stay unchanged. Tests cover partial signing, final-comment failure, preflight, closed/error paths, and bundled dist smoke. Isolated review helper is unavailable on this host (sandbox-exec status 71); manual exact-diff review and the reported full suite/lint/typecheck/build passed.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (12)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe action adds a ChangesCLA passed output
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This PR adds an explicit per-run CLA result while preserving existing signature behavior; it is merge-ready after normal checks and review, with no actionable merge-blocking risk remaining. Sequence Diagram(s)sequenceDiagram
participant Action
participant SignerPreflight
participant CLA_Check
participant GitHub_API
Action->>Action: Initialize cla_passed=false
Action->>SignerPreflight: Run admission checks
SignerPreflight-->>Action: Keep cla_passed=false
Action->>CLA_Check: Validate required signatures
CLA_Check->>GitHub_API: Apply final all-signed comment
GitHub_API-->>CLA_Check: Comment apply succeeds
CLA_Check-->>Action: Set cla_passed=true
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 9 files. (3 skipped: 3 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
cmux-founders
left a comment
There was a problem hiding this comment.
Independent maintainer review: exact head 8e1d05b passed the action test, lint, typecheck, build, bundled smoke, and CodeQL checks.
Summary
cla_passedaction output for the final policy resultsignature_recordedsemantics and document the distinctionVerification
465b881adds behavior tests before the implementation8e1d05badds source, metadata, docs, and bundleddist/index.jsnpm test -- --runInBand(18 suites, 236 tests)npm run lintnpx tsc --noEmitnpm run buildgit diff --checkSummary by cubic
Adds a
cla_passedaction output so consumers no longer need to infer the final CLA result fromsignature_recorded. It istrueonly when all required contributors are signed and the final bot comment write succeeds; it remainsfalsefor preflight, unsigned, closed, and error runs.signature_recordedcan remaintruewhile another contributor is still unsigned.cla_passedis a per-run result, not durable authorization.dist/index.js, and adds regression coverage for success and failure paths.Written for commit 8e1d05b. Summary will update on new commits.
Summary by CodeRabbit
New Features
cla_passedworkflow output indicating whether all required contributors signed and the final confirmation was applied successfully.trueonly after successful completion; otherwise, it remainsfalsefor preflight, unsigned, closed, and error runs.signature_recorded.Bug Fixes
cla_passed=falseeven when signatures were recorded.