refactor(workflows): centralize repo list in repos.txt

- Create repos.txt as single source of truth for all 7 workspace repos

- Update all repo-management workflows to source from repos.txt:

  - repo_sync-repos, repo_push-repos, repo_backup-and-push

  - repo_backup-main-branch, repo_commit-workspace

Benefits:

- One file to update when adding/removing repos

- Consistent repo list across all workflows

- Scripts can read repos.txt for automation
This commit is contained in:
saravanakumardb1 2026-03-03 16:16:12 -08:00
parent a31fdfe55a
commit 7e3de866d3
6 changed files with 29 additions and 42 deletions

View File

@ -18,10 +18,11 @@ Run `bash scripts/backup-main.sh` from any repository root
// turbo
```bash
for repo in learning_ai_common_plat learning_voice_ai_agent learning_multimodal_memory_agents learning_ai_clock learning_ai_fastgap learning_ai_jarvis_jr learning_ai_peakpulse; do
while IFS= read -r repo; do
[[ -z "$repo" || "$repo" =~ ^# ]] && continue
echo "━━━ Pushing $repo ━━━"
(cd ~/code/mygh/$repo && git push origin main 2>&1)
done
done < ~/code/mygh/learning_ai_common_plat/.windsurf/workflows/repos.txt
echo ""
echo "✨ All repos pushed!"
```
@ -33,13 +34,7 @@ echo "✨ All repos pushed!"
## Repositories:
- learning_ai_common_plat
- learning_voice_ai_agent
- learning_multimodal_memory_agents
- learning_ai_clock
- learning_ai_fastgap
- learning_ai_jarvis_jr
- learning_ai_peakpulse
See `repos.txt` for the canonical list of all workspace repositories.
## When to use:

View File

@ -9,6 +9,8 @@ Creates smart backups of main branches across all repositories.
// turbo
Run `bash scripts/backup-main.sh` from any repository root
The script reads `repos.txt` to determine which repositories to back up.
## What it does:
1. Checks each repository for changes
@ -19,13 +21,7 @@ Run `bash scripts/backup-main.sh` from any repository root
## Repositories covered:
- learning_ai_common_plat
- learning_voice_ai_agent
- learning_multimodal_memory_agents
- learning_ai_clock
- learning_ai_fastgap
- learning_ai_jarvis_jr
- learning_ai_peakpulse
See `repos.txt` for the canonical list of all workspace repositories.
## Features:

View File

@ -12,14 +12,9 @@ Scans all repositories for pending changes and commits them in logical order wit
## What it does:
1. **Scans** all 7 repos for changes:
- learning_ai_common_plat
- learning_voice_ai_agent
- learning_multimodal_memory_agents
- learning_ai_clock
- learning_ai_fastgap
- learning_ai_jarvis_jr
- learning_ai_peakpulse
1. **Scans** all repos for changes (reads from `repos.txt`):
See `repos.txt` for the canonical list of all workspace repositories.
2. **Analyzes** changed files to determine:
- Commit scope (auth, ci, docs, feat, chore, etc.)

View File

@ -9,10 +9,11 @@ Pushes local `main` to `origin/main` for all workspace repositories.
// turbo
```bash
for repo in learning_ai_common_plat learning_voice_ai_agent learning_multimodal_memory_agents learning_ai_clock learning_ai_fastgap learning_ai_jarvis_jr learning_ai_peakpulse; do
while IFS= read -r repo; do
[[ -z "$repo" || "$repo" =~ ^# ]] && continue
echo "━━━ $repo ━━━"
(cd ~/code/mygh/$repo && git push origin main)
done
done < ~/code/mygh/learning_ai_common_plat/.windsurf/workflows/repos.txt
```
## What it does:
@ -23,13 +24,7 @@ done
## Repositories:
- learning_ai_common_plat
- learning_voice_ai_agent
- learning_multimodal_memory_agents
- learning_ai_clock
- learning_ai_fastgap
- learning_ai_jarvis_jr
- learning_ai_peakpulse
See `repos.txt` for the canonical list of all workspace repositories.
## When to use:

View File

@ -9,10 +9,11 @@ Pulls the latest changes from `origin/main` for all workspace repositories.
// turbo
```bash
for repo in learning_ai_common_plat learning_voice_ai_agent learning_multimodal_memory_agents learning_ai_clock learning_ai_fastgap learning_ai_jarvis_jr learning_ai_peakpulse; do
while IFS= read -r repo; do
[[ -z "$repo" || "$repo" =~ ^# ]] && continue
echo "━━━ $repo ━━━"
(cd ~/code/mygh/$repo && git pull --ff-only origin main)
done
done < ~/code/mygh/learning_ai_common_plat/.windsurf/workflows/repos.txt
```
## What it does:
@ -23,13 +24,7 @@ done
## Repositories:
- learning_ai_common_plat
- learning_voice_ai_agent
- learning_multimodal_memory_agents
- learning_ai_clock
- learning_ai_fastgap
- learning_ai_jarvis_jr
- learning_ai_peakpulse
See `repos.txt` for the canonical list of all workspace repositories.
## When to use:

View File

@ -0,0 +1,11 @@
# All workspace repositories
# Single source of truth for repo-management workflows
# Reference this file in scripts instead of hardcoding repo lists
learning_ai_common_plat
learning_voice_ai_agent
learning_multimodal_memory_agents
learning_ai_clock
learning_ai_fastgap
learning_ai_jarvis_jr
learning_ai_peakpulse