ci(docs): auto-sync PROJECT_TREE.md to the docs repo on push to main #16

Merged
whitlocktech merged 1 commits from chore/sync-project-tree-ci into main 2026-07-22 21:20:45 +00:00
Member

Adds a sync-project-tree workflow that keeps link/PROJECT_TREE.md in RunicGateway/docs current.

Behavior

  • Trigger: push to main (+ manual workflow_dispatch).
  • Regenerates the tree from git ls-files via .gitea/scripts/gen_tree.py (deterministic: directories first, then case-insensitive name).
  • Clones the docs repo, writes link/PROJECT_TREE.md, and if it changed, force-pushes branch chore/sync-link-tree and opens a PR against docs main (reuses the open PR if one already exists). Never touches docs main directly.
  • Auth reuses the existing REGISTRY_USER / REGISTRY_TOKEN secrets (the token needs read/write on RunicGateway/docs).

Companion to docs PR #41, which seeds the initial PROJECT_TREE.md files. The first run of this workflow may open a small follow-up PR normalizing the tree to the generator's exact output (dropping the archive-style link-main/ root wrapper from the seed).

🤖 AI-assisted (Claude). Disclosed per org policy.

Co-Authored-By: Claude noreply@anthropic.com

Adds a `sync-project-tree` workflow that keeps `link/PROJECT_TREE.md` in [`RunicGateway/docs`](https://gitea.whitlocktech.com/RunicGateway/docs) current. ## Behavior - **Trigger:** push to `main` (+ manual `workflow_dispatch`). - Regenerates the tree from `git ls-files` via `.gitea/scripts/gen_tree.py` (deterministic: directories first, then case-insensitive name). - Clones the docs repo, writes `link/PROJECT_TREE.md`, and if it changed, force-pushes branch `chore/sync-link-tree` and opens a PR against docs `main` (reuses the open PR if one already exists). **Never touches docs `main` directly.** - Auth reuses the existing `REGISTRY_USER` / `REGISTRY_TOKEN` secrets (the token needs read/write on `RunicGateway/docs`). Companion to docs PR #41, which seeds the initial `PROJECT_TREE.md` files. The first run of this workflow may open a small follow-up PR normalizing the tree to the generator's exact output (dropping the archive-style `link-main/` root wrapper from the seed). 🤖 AI-assisted (Claude). Disclosed per org policy. Co-Authored-By: Claude <noreply@anthropic.com>
wtclaude added 1 commit 2026-07-22 21:19:58 +00:00
Add a sync-project-tree workflow that regenerates this repo's tracked-file
tree and opens (or force-updates) a PR against RunicGateway/docs whenever the
layout on main changes. Never writes to the docs repo's main directly. Reuses
the existing REGISTRY_USER / REGISTRY_TOKEN secrets. Tree rendering lives in
.gitea/scripts/gen_tree.py (deterministic, dirs-first ordering).

Co-Authored-By: Claude <noreply@anthropic.com>
whitlocktech approved these changes 2026-07-22 21:20:37 +00:00
whitlocktech merged commit 7e4177c6c0 into main 2026-07-22 21:20:45 +00:00
whitlocktech deleted branch chore/sync-project-tree-ci 2026-07-22 21:20:46 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RunicGateway/link#16
No description provided.