Repository navigation
chore(repo): stop blanket-ignoring docs/, ignore only docs/generated/ - #1211
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughUpdated ChangesDocumentation Discovery and Tracking
Estimated code review effort: 2 (Simple) | ~8 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
0dc5cc6 to
43ceec2
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
Adversarial review -- PR #1211Reviewed against the stated risk surfaces (un-ignore exposure, What I checked
CI stateAll four failing checks (
None introduced by this PR. From a code-correctness standpoint the diff is mergeable; the UNSTABLE state reflects unmerged migration-collision and repo-level debt that a fresh rebase + the already-merged #1261 will clear. Out-of-scope follow-up filed
VerdictNo fix needed on PR #1211 itself. The core claim (blanket |
|
@coderabbitai review |
✅ Action performedReview finished.
|
43ceec2 to
2226060
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
5cf72c3 to
c092645
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Merge-prep bot: rebased onto main (73166c2). No Go or frontend files touched. gitignore pattern verified: docs/generated/runbook.md is ignored (exit 0), docs/DEVELOPMENT.md is not ignored (exit 1). No build/test gates required for .gitignore + README.md only change. |
The .gitignore blanket-ignored the entire docs/ directory while it contains tracked, hand-written documentation (DEPLOYMENT.md, DEVELOPMENT.md, smoke-test-multi-account.sh) and CLAUDE.md tells contributors to put documentation there. Any new file under docs/ was silently excluded from git add / git status, and substantive review docs had already accumulated untracked and invisible to git. Narrow the ignore to docs/generated/, the generated-runbook output the blanket rule was meant to cover, so hand-written docs are tracked normally. Also link docs/DEVELOPMENT.md from the README Development section so the guide is discoverable (DEPLOYMENT.md was already linked). Verified with git check-ignore: before, docs/new-doc.md matched .gitignore:137 (docs/); after, it is not ignored while docs/generated/runbook.md still is, and the three tracked docs/ files are unaffected. Closes #1169
c092645 to
7db2b36
Compare
|
Merge-prep bot: rebased onto current main (e8da1c4) to resolve the .gitignore conflict introduced when #1090 (docs CLI reference) also edited .gitignore. Conflict resolution by intent, keeping BOTH deliverables:
Merged to the narrow Verification (git check-ignore against the rebased tree):
Diff intact: .gitignore + README.md (+10/-4). Pushed to fix/hyg-03-docs-gitignore. |
chore(repo): stop blanket-ignoring docs/, ignore only docs/generated/
Problem
Closes #1169 (review finding HYG-03, P2).
.gitignoreblanket-ignored the entiredocs/directory (# Generated docs (security runbooks etc.)/docs/), whiledocs/contains tracked, hand-written documentation (DEPLOYMENT.md,DEVELOPMENT.md,smoke-test-multi-account.sh) and the repo's contributor guidance tells people to put documentation there. Any new file underdocs/was silently excluded fromgit add/git status; the predicted drift had already happened, with ~200KB of review documentation accumulating untracked and invisible to git underdocs/code-review/.Fix
docs/todocs/generated/, the generated-runbook output the blanket rule was meant to cover, and document the intent in the comment. Hand-written docs underdocs/are now tracked normally.docs/DEVELOPMENT.mdfrom the README## Developmentsection so the guide is discoverable. (docs/DEPLOYMENT.mdwas already linked from the deployment section, so only the development guide link was missing.)Test evidence
Verified with
git check-ignore -vin a clean worktree oforigin/main:Pre-fix (bug reproduced - every new docs file is trapped):
Post-fix:
No code changes, so no Go/frontend tests apply; an automated regression test is not idiomatic for
.gitignoresemantics, thegit check-ignorepre/post evidence above replicates the exact failing scenario.Summary by CodeRabbit
Documentation
Chores
.gitignoreto stop ignoring the entiredocs/directory and instead ignore only generated content underdocs/generated/, while keeping hand-written documentation indocs/tracked.