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:
parent
a31fdfe55a
commit
7e3de866d3
@ -18,10 +18,11 @@ Run `bash scripts/backup-main.sh` from any repository root
|
|||||||
// turbo
|
// turbo
|
||||||
|
|
||||||
```bash
|
```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 ━━━"
|
echo "━━━ Pushing $repo ━━━"
|
||||||
(cd ~/code/mygh/$repo && git push origin main 2>&1)
|
(cd ~/code/mygh/$repo && git push origin main 2>&1)
|
||||||
done
|
done < ~/code/mygh/learning_ai_common_plat/.windsurf/workflows/repos.txt
|
||||||
echo ""
|
echo ""
|
||||||
echo "✨ All repos pushed!"
|
echo "✨ All repos pushed!"
|
||||||
```
|
```
|
||||||
@ -33,13 +34,7 @@ echo "✨ All repos pushed!"
|
|||||||
|
|
||||||
## Repositories:
|
## Repositories:
|
||||||
|
|
||||||
- learning_ai_common_plat
|
See `repos.txt` for the canonical list of all workspace repositories.
|
||||||
- learning_voice_ai_agent
|
|
||||||
- learning_multimodal_memory_agents
|
|
||||||
- learning_ai_clock
|
|
||||||
- learning_ai_fastgap
|
|
||||||
- learning_ai_jarvis_jr
|
|
||||||
- learning_ai_peakpulse
|
|
||||||
|
|
||||||
## When to use:
|
## When to use:
|
||||||
|
|
||||||
|
|||||||
@ -9,6 +9,8 @@ Creates smart backups of main branches across all repositories.
|
|||||||
// turbo
|
// turbo
|
||||||
Run `bash scripts/backup-main.sh` from any repository root
|
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:
|
## What it does:
|
||||||
|
|
||||||
1. Checks each repository for changes
|
1. Checks each repository for changes
|
||||||
@ -19,13 +21,7 @@ Run `bash scripts/backup-main.sh` from any repository root
|
|||||||
|
|
||||||
## Repositories covered:
|
## Repositories covered:
|
||||||
|
|
||||||
- learning_ai_common_plat
|
See `repos.txt` for the canonical list of all workspace repositories.
|
||||||
- learning_voice_ai_agent
|
|
||||||
- learning_multimodal_memory_agents
|
|
||||||
- learning_ai_clock
|
|
||||||
- learning_ai_fastgap
|
|
||||||
- learning_ai_jarvis_jr
|
|
||||||
- learning_ai_peakpulse
|
|
||||||
|
|
||||||
## Features:
|
## Features:
|
||||||
|
|
||||||
|
|||||||
@ -12,14 +12,9 @@ Scans all repositories for pending changes and commits them in logical order wit
|
|||||||
|
|
||||||
## What it does:
|
## What it does:
|
||||||
|
|
||||||
1. **Scans** all 7 repos for changes:
|
1. **Scans** all repos for changes (reads from `repos.txt`):
|
||||||
- learning_ai_common_plat
|
|
||||||
- learning_voice_ai_agent
|
See `repos.txt` for the canonical list of all workspace repositories.
|
||||||
- learning_multimodal_memory_agents
|
|
||||||
- learning_ai_clock
|
|
||||||
- learning_ai_fastgap
|
|
||||||
- learning_ai_jarvis_jr
|
|
||||||
- learning_ai_peakpulse
|
|
||||||
|
|
||||||
2. **Analyzes** changed files to determine:
|
2. **Analyzes** changed files to determine:
|
||||||
- Commit scope (auth, ci, docs, feat, chore, etc.)
|
- Commit scope (auth, ci, docs, feat, chore, etc.)
|
||||||
|
|||||||
@ -9,10 +9,11 @@ Pushes local `main` to `origin/main` for all workspace repositories.
|
|||||||
// turbo
|
// turbo
|
||||||
|
|
||||||
```bash
|
```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 ━━━"
|
echo "━━━ $repo ━━━"
|
||||||
(cd ~/code/mygh/$repo && git push origin main)
|
(cd ~/code/mygh/$repo && git push origin main)
|
||||||
done
|
done < ~/code/mygh/learning_ai_common_plat/.windsurf/workflows/repos.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
## What it does:
|
## What it does:
|
||||||
@ -23,13 +24,7 @@ done
|
|||||||
|
|
||||||
## Repositories:
|
## Repositories:
|
||||||
|
|
||||||
- learning_ai_common_plat
|
See `repos.txt` for the canonical list of all workspace repositories.
|
||||||
- learning_voice_ai_agent
|
|
||||||
- learning_multimodal_memory_agents
|
|
||||||
- learning_ai_clock
|
|
||||||
- learning_ai_fastgap
|
|
||||||
- learning_ai_jarvis_jr
|
|
||||||
- learning_ai_peakpulse
|
|
||||||
|
|
||||||
## When to use:
|
## When to use:
|
||||||
|
|
||||||
|
|||||||
@ -9,10 +9,11 @@ Pulls the latest changes from `origin/main` for all workspace repositories.
|
|||||||
// turbo
|
// turbo
|
||||||
|
|
||||||
```bash
|
```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 ━━━"
|
echo "━━━ $repo ━━━"
|
||||||
(cd ~/code/mygh/$repo && git pull --ff-only origin main)
|
(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:
|
## What it does:
|
||||||
@ -23,13 +24,7 @@ done
|
|||||||
|
|
||||||
## Repositories:
|
## Repositories:
|
||||||
|
|
||||||
- learning_ai_common_plat
|
See `repos.txt` for the canonical list of all workspace repositories.
|
||||||
- learning_voice_ai_agent
|
|
||||||
- learning_multimodal_memory_agents
|
|
||||||
- learning_ai_clock
|
|
||||||
- learning_ai_fastgap
|
|
||||||
- learning_ai_jarvis_jr
|
|
||||||
- learning_ai_peakpulse
|
|
||||||
|
|
||||||
## When to use:
|
## When to use:
|
||||||
|
|
||||||
|
|||||||
11
.windsurf/workflows/repos.txt
Normal file
11
.windsurf/workflows/repos.txt
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user