Skip to content

chore: rewrite .gitignore for post-Phase-B layout#124

Merged
Gradata merged 1 commit intomainfrom
chore/gitignore-post-reorg
Apr 20, 2026
Merged

chore: rewrite .gitignore for post-Phase-B layout#124
Gradata merged 1 commit intomainfrom
chore/gitignore-post-reorg

Conversation

@Gradata
Copy link
Copy Markdown
Owner

@Gradata Gradata commented Apr 20, 2026

Summary

Old .gitignore had duplicates (CLAUDE.md 2x, node_modules/ 2x, .env 3x, pycache 2x) and hardcoded pre-Phase-B paths (docs/superpowers/, scripts/*, src/gradata/graphify-out/) that no longer match the new layout. Some intended ignores + npm exceptions silently broke.

  • Sprites/, Hausgem/, .reorg/ blanket-ignored
  • Gradata/ prefix added to SDK-specific ignores
  • npm exception patterns re-anchored under Gradata/packages/ + Gradata/gradata-install/
  • Deduped secrets / build / IDE / venv sections
  • Kept Windows cmd.exe redirect misparse guards

Test plan

  • No tracked file becomes newly ignored (git ls-files | xargs git check-ignore → empty)
  • Sensitive paths still ignored: .env, Sprites/CLAUDE.md, Gradata/package.json, Gradata/docs/gradata-marketing-strategy.md

Generated with Gradata

The previous .gitignore had grown over time with duplicates (CLAUDE.md
twice, node_modules/ twice, .env three times, __pycache__/ twice) and
hardcoded old-root paths (docs/superpowers/, scripts/*, src/gradata/
graphify-out/) that no longer match the post-Phase-B layout.

Replacing with a clean, sectioned version:
- Sprites/, Hausgem/, .reorg/ blanket-ignored (private/historical).
- Gradata/ prefix added to SDK-specific ignores (docs/superpowers/,
  scripts/*, design-system/, etc.) so the rules still match after
  the src/, docs/, scripts/ move under Gradata/.
- npm exception patterns re-anchored to Gradata/packages/ and
  Gradata/gradata-install/ so new package.json additions ship.
- Deduped secrets/build-artifact/IDE/virtualenv sections.
- Dropped obsolete entries (.claude-octopus/, Claude Flow logs dirs)
  and kept the Windows cmd.exe redirect misparse guards intact.

Verified via `git ls-files | xargs git check-ignore` — no previously
tracked file is newly ignored by this rewrite.

Co-Authored-By: Gradata <noreply@gradata.ai>
Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 20, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: c9619b8c-247a-422f-a8c2-1a506d4b7c7d

📥 Commits

Reviewing files that changed from the base of the PR and between b15cb0b and f5e9607.

📒 Files selected for processing (1)
  • .gitignore

📝 Walkthrough

Summary

  • Restructured .gitignore to match post-Phase-B repository layout with organized sections for private workspaces, secrets, artifacts, and build outputs
  • Removed duplicate entries (CLAUDE.md, node_modules/, .env, pycache) and obsolete pre-Phase-B paths (docs/superpowers/, scripts/*, src/gradata/graphify-out/)
  • Added blanket ignores for private workspace directories: Sprites/, Hausgem/, and .reorg/
  • Expanded build/cache artifacts: Python caches (pycache/, *.pyc, *.egg-info/), MCP/code-intel caches (.code-review-graph/, .gstack/, .gitnexus/), and virtualenvs (.venv/, venv/)
  • Reorganized SDK-specific ignores with Gradata/ prefix to reflect files moved under Gradata/ directory structure
  • Re-anchored npm exception patterns under Gradata/packages/ and Gradata/gradata-install/ to allow intended package.json files to be tracked
  • Added new secret handling for .secret and .mcp.json while maintaining credentials patterns
  • Introduced stale-path ignores for relocated directories (cloud/, sdk/, railway.toml, vendor/)
  • Verified backward compatibility: confirmed no previously tracked files become newly ignored and sensitive paths remain protected

Walkthrough

The .gitignore file has been comprehensively restructured to align with a new project layout. The rework adds patterns for Python caches, build artifacts, MCP/code-intel caches, virtualenvs, workspace directories, and SDK-internal subtrees under Gradata/, while reorganizing runtime ignores and introducing publish exceptions for npm manifests and hook templates.

Changes

Cohort / File(s) Summary
.gitignore Restructuring
.gitignore
Reorganized from flat layout to "post Phase B" scheme. Added private workspace dirs (Sprites/, Hausgem/, .reorg/), secrets patterns (*.secret, credentials*, .mcp.json), Python/build caches (__pycache__/, *.pyc, dist/, build/, .ruff_cache/, .pytest_cache/, .vectorstore/), MCP caches (.code-review-graph/, .gstack/, .gitnexus/), stale paths (/cloud/, /sdk/, vendor/), and SDK-internal subtrees under Gradata/. Added npm manifest exceptions and hook template exceptions. Retained runtime ignores (system.db, memory/, sessions/) and sales guards (apollo-leads-*.csv, Leads/).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

security, refactor

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/gitignore-post-reorg

Comment @coderabbitai help to get the list of available commands and usage tips.

@Gradata Gradata merged commit af06270 into main Apr 20, 2026
1 check was pending
@Gradata Gradata deleted the chore/gitignore-post-reorg branch April 20, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant