Skip to content

Commit 7d3a8e9

Browse files
Copilotlippytm
andcommitted
Add comprehensive repository network documentation
Co-authored-by: lippytm <65956507+lippytm@users.noreply.github.com>
1 parent 0df92f4 commit 7d3a8e9

1 file changed

Lines changed: 213 additions & 0 deletions

File tree

REPOSITORY_NETWORK.md

Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
1+
# Repository Network Documentation
2+
3+
## Overview
4+
5+
This document describes the network of connected repositories and how they interact through GitHub Actions workflows.
6+
7+
## Repository Network
8+
9+
```
10+
┌─────────────────────────────────────────────────────────────┐
11+
│ │
12+
│ Transparency-Logic-Time-Machine-Bots- (Central Hub) │
13+
│ │
14+
└────────────────────┬────────────────────────────────────────┘
15+
16+
┌────────────┼────────────┬────────────┐
17+
│ │ │ │
18+
▼ ▼ ▼ ▼
19+
┌────────┐ ┌─────────┐ ┌─────────┐ ┌──────────┐
20+
│Web3AI │ │ gatsby- │ │ Time- │ │ AI- │
21+
│ │ │ starter-│ │ Machines│ │ Time- │
22+
│ │ │ blog │ │ Builder │ │ Machines │
23+
└────────┘ └─────────┘ └─────────┘ └──────────┘
24+
```
25+
26+
## Connected Repositories
27+
28+
### 1. 🌐 Web3AI
29+
- **URL:** https://github.com/lippytm/Web3AI
30+
- **Purpose:** Web3 and AI integration platform
31+
- **Language:** Not specified
32+
- **Stars:** 2
33+
- **Default Branch:** main
34+
35+
### 2. 📝 gatsby-starter-blog
36+
- **URL:** https://github.com/lippytm/gatsby-starter-blog
37+
- **Purpose:** Blog platform built with Gatsby
38+
- **Language:** JavaScript
39+
- **Stars:** 1
40+
- **Default Branch:** master
41+
42+
### 3. ⚙️ Time-Machines-Builders-
43+
- **URL:** https://github.com/lippytm/Time-Machines-Builders-
44+
- **Purpose:** AI automation in Earn while you Learn to Become a Better Programmer and Blockchain Developer
45+
- **Language:** Not specified
46+
- **Stars:** 1
47+
- **Default Branch:** main
48+
49+
### 4. 🤖 AI-Time-Machines
50+
- **URL:** https://github.com/lippytm/AI-Time-Machines
51+
- **Purpose:** Adding AI Agents to everything with Time Machines
52+
- **Language:** JavaScript
53+
- **Stars:** 1
54+
- **Default Branch:** main
55+
56+
## Workflow Capabilities
57+
58+
### CI Workflow (blank.yml)
59+
60+
**Triggers:**
61+
- Push to master branch
62+
- Pull requests to master branch
63+
- Manual workflow dispatch (with repository selection)
64+
- Repository dispatch events from other repos
65+
66+
**Jobs:**
67+
1. **build** - Main build job with repository status display
68+
2. **check-connected-repos** - Matrix job that checks all connected repositories
69+
70+
**Features:**
71+
- Lists all connected repositories on each run
72+
- Can be triggered manually with target repository selection
73+
- Can receive triggers from other repositories via repository_dispatch
74+
75+
### Cross-Repository Sync Workflow (cross-repo-sync.yml)
76+
77+
**Triggers:**
78+
- Push to master branch
79+
- Manual workflow dispatch (with notify_all option)
80+
81+
**Jobs:**
82+
1. **notify-connected-repos** - Notifies all connected repositories (when enabled)
83+
2. **display-repo-connections** - Displays visual network map
84+
85+
**Features:**
86+
- Visual display of repository network
87+
- Prepared for cross-repository notifications (requires PAT token)
88+
- Matrix-based notification to all connected repos
89+
90+
## Setup Instructions
91+
92+
### Basic Usage
93+
94+
The workflows are ready to use immediately with the following capabilities:
95+
- Automatic CI runs on push/PR
96+
- Manual workflow triggers
97+
- Repository status monitoring
98+
- Visual network display
99+
100+
### Advanced Setup (Cross-Repository Notifications)
101+
102+
To enable actual cross-repository dispatch capabilities:
103+
104+
1. **Create Personal Access Token:**
105+
- Go to GitHub Settings → Developer settings → Personal access tokens
106+
- Generate new token with `repo` scope
107+
- Copy the token
108+
109+
2. **Add Secret to Repository:**
110+
- Go to repository Settings → Secrets and variables → Actions
111+
- Click "New repository secret"
112+
- Name: `REPO_ACCESS_TOKEN`
113+
- Value: Paste your PAT token
114+
- Click "Add secret"
115+
116+
3. **Enable Repository Dispatch:**
117+
- Edit `.github/workflows/cross-repo-sync.yml`
118+
- Uncomment lines 37-43 (the Repository Dispatch step)
119+
- Commit and push the changes
120+
121+
4. **Set Up Receiving Repositories:**
122+
Each connected repository should add a workflow to receive events:
123+
```yaml
124+
name: Handle Remote Trigger
125+
on:
126+
repository_dispatch:
127+
types: [transparency-bots-update]
128+
129+
jobs:
130+
handle-update:
131+
runs-on: ubuntu-latest
132+
steps:
133+
- name: Log update
134+
run: |
135+
echo "Triggered by: ${{ github.event.client_payload.ref }}"
136+
echo "From commit: ${{ github.event.client_payload.sha }}"
137+
```
138+
139+
## Manual Workflow Execution
140+
141+
### Running CI Workflow Manually
142+
143+
1. Go to: https://github.com/lippytm/Transparency-Logic-Time-Machine-Bots-/actions
144+
2. Click on "CI" workflow
145+
3. Click "Run workflow" button
146+
4. Select a target repository (optional)
147+
5. Click "Run workflow"
148+
149+
### Running Cross-Repository Sync
150+
151+
1. Go to: https://github.com/lippytm/Transparency-Logic-Time-Machine-Bots-/actions
152+
2. Click on "Cross-Repository Sync" workflow
153+
3. Click "Run workflow" button
154+
4. Check "Notify all connected repositories" if desired
155+
5. Click "Run workflow"
156+
157+
## Workflow Badges
158+
159+
Add these badges to any documentation to show workflow status:
160+
161+
```markdown
162+
![CI Status](https://github.com/lippytm/Transparency-Logic-Time-Machine-Bots-/workflows/CI/badge.svg)
163+
![Cross-Repository Sync](https://github.com/lippytm/Transparency-Logic-Time-Machine-Bots-/workflows/Cross-Repository%20Sync/badge.svg)
164+
```
165+
166+
## Monitoring
167+
168+
### View Workflow Runs
169+
170+
- **All workflows:** https://github.com/lippytm/Transparency-Logic-Time-Machine-Bots-/actions
171+
- **CI only:** https://github.com/lippytm/Transparency-Logic-Time-Machine-Bots-/actions/workflows/blank.yml
172+
- **Cross-Repo Sync only:** https://github.com/lippytm/Transparency-Logic-Time-Machine-Bots-/actions/workflows/cross-repo-sync.yml
173+
174+
### Check Repository Status
175+
176+
Each workflow run displays the status of all connected repositories in the job output.
177+
178+
## Future Enhancements
179+
180+
Potential improvements for the workflow system:
181+
182+
1. **Automated Dependency Updates:** Track and update dependencies across all repositories
183+
2. **Cross-Repository Testing:** Run tests across repository boundaries
184+
3. **Unified Deployment:** Deploy all repositories together
185+
4. **Health Checks:** Regular automated health checks for all repositories
186+
5. **Metrics Dashboard:** Aggregate metrics from all repositories
187+
6. **Security Scanning:** Unified security scanning across the network
188+
189+
## Troubleshooting
190+
191+
### Workflow Not Triggering
192+
193+
- Check that the workflow file is in the default branch (master)
194+
- Verify YAML syntax is correct
195+
- Check Actions tab for any errors
196+
197+
### Repository Dispatch Not Working
198+
199+
- Ensure PAT token has correct scopes
200+
- Verify secret is named exactly `REPO_ACCESS_TOKEN`
201+
- Check that receiving repository has a matching workflow
202+
203+
### Matrix Jobs Failing
204+
205+
- Individual repository checks are informational only
206+
- Failures in matrix jobs won't fail the overall workflow
207+
208+
## Support
209+
210+
For issues or questions:
211+
- Open an issue in this repository
212+
- Check workflow run logs in the Actions tab
213+
- Review GitHub Actions documentation: https://docs.github.com/en/actions

0 commit comments

Comments
 (0)