fix(notion): require explicit local user for gh intake - #401
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughNotion intake now requires exact ChangesNotion GitHub identity policy
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The change makes GitHub-backed Notion intake require an explicit local user identity and reports passing targeted tests plus a successful TypeScript build; no actionable merge-blocking risk remains beyond normal checks and review. Sequence Diagram(s)sequenceDiagram
participant FleetIntake
participant NotionGithub
participant LocalGh
participant NotionClaims
FleetIntake->>NotionGithub: resolve repository operation
NotionGithub->>NotionGithub: assert explicit user identity
NotionGithub-->>FleetIntake: block auto or app identity
FleetIntake--xLocalGh: do not invoke gh
FleetIntake--xNotionClaims: do not reserve create claim
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 4 files. (1 skipped: 1 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 |
|
@coderabbitai review Requested for exact head |
There was a problem hiding this comment.
No issues found across 4 files
You’re at about 90% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
|
@coderabbitai review Requested for exact head |
d3a8526 to
445be68
Compare
|
@coderabbitai review Requested for exact head |
445be68 to
9cf5930
Compare
|
@coderabbitai review Requested for exact head |
Decision
Fail loudly unless the built-in Notion GitHub CLI publisher is selected with exact
github.identity: "user". There is no connected-App replacement for repository visibility, label enumeration, source-marker reconciliation, or issue creation.autoandappnow block before every read/write process boundary and before any durable claim.This preserves project-only intake (the publisher is never touched) and injected custom publishers. Explicit
userremains the local-host opt-in for machines that actually have authenticated gh.Evidence
Pre-change policy tests: 3 failed, 8 skipped; auto writes and app/auto reads reached the runner.
Final:
Ablation matrix
Observed summaries: first two rows each 3 failed / 2 passed / 176 skipped across two files; direct-mutation row 1 failed / 4 passed / 176 skipped.