Skip to content

fix(sync): skip archived repos and guard doc collisions - #211

Draft
hanthor wants to merge 1 commit into
tuna-os:mainfrom
hanthor:agent/issue-154-sync-guards
Draft

fix(sync): skip archived repos and guard doc collisions#211
hanthor wants to merge 1 commit into
tuna-os:mainfrom
hanthor:agent/issue-154-sync-guards

Conversation

@hanthor

@hanthor hanthor commented Aug 13, 2026

Copy link
Copy Markdown
Member

Summary

  • exclude archived repositories from the org-wide documentation sync
  • keep the listing completeness check aligned with the active-repo filter
  • add a CI guard for case-insensitive duplicate paths under docs/
  • cover the collision detector with unit tests

Why

Archived repos can reintroduce stale hanthor/ references into generated pages. Case-only filename differences such as USER-GUIDE.md and user-guide.md break checkouts on case-insensitive filesystems and can produce duplicate routes.

Validation

  • node --check scripts/sync-org-docs.mjs
  • node --check scripts/check-doc-collisions.mjs
  • node scripts/__tests__/sync-org-docs.test.mjs (71 passed)
  • node scripts/check-doc-collisions.mjs
  • git diff --check

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant