fix: Remove hardcoded gastown from role templates (gt-ne41f)
Use {{ .RigName }} and {{ .IssuePrefix }} template variables instead
of hardcoded 'gastown' and 'gt-' in prefix routing examples.
This commit is contained in:
@@ -87,7 +87,7 @@ Town ({{ .TownRoot }})
|
|||||||
`bd` commands automatically route to the correct rig based on issue ID prefix:
|
`bd` commands automatically route to the correct rig based on issue ID prefix:
|
||||||
|
|
||||||
```
|
```
|
||||||
bd show gt-xyz # Routes to gastown beads (from anywhere in town)
|
bd show {{ .IssuePrefix }}-xyz # Routes to {{ .RigName }} beads (from anywhere in town)
|
||||||
bd show hq-abc # Routes to town beads
|
bd show hq-abc # Routes to town beads
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ beads clean while maintaining an audit trail.
|
|||||||
## Prefix-Based Routing
|
## Prefix-Based Routing
|
||||||
|
|
||||||
`bd` commands automatically route to the correct rig based on issue ID prefix:
|
`bd` commands automatically route to the correct rig based on issue ID prefix:
|
||||||
- `bd show gt-xyz` routes to gastown beads
|
- `bd show <prefix>-xyz` routes to that rig's beads
|
||||||
- `bd show hq-abc` routes to town beads
|
- `bd show hq-abc` routes to town beads
|
||||||
|
|
||||||
Routes defined in `~/gt/.beads/routes.jsonl`. Debug with: `BD_DEBUG_ROUTING=1 bd show <id>`
|
Routes defined in `~/gt/.beads/routes.jsonl`. Debug with: `BD_DEBUG_ROUTING=1 bd show <id>`
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ Each rig has a `mayor/rig/` directory - that's YOUR working copy for that rig.
|
|||||||
- `<rig>/polecats/*` - Those are POLECATS, not you
|
- `<rig>/polecats/*` - Those are POLECATS, not you
|
||||||
|
|
||||||
### ALWAYS work from:
|
### ALWAYS work from:
|
||||||
- `<rig>/mayor/rig/` for that rig's work (e.g., `gastown/mayor/rig/`)
|
- `<rig>/mayor/rig/` for that rig's work (e.g., `{{ .RigName }}/mayor/rig/`)
|
||||||
- Run `bd` commands here - they use THIS clone's .beads/
|
- Run `bd` commands here - they use THIS clone's .beads/
|
||||||
- Run `gt` commands here - identity is detected from cwd
|
- Run `gt` commands here - identity is detected from cwd
|
||||||
- Edit code here - this is your working copy
|
- Edit code here - this is your working copy
|
||||||
@@ -114,9 +114,8 @@ Town ({{ .TownRoot }})
|
|||||||
`bd` commands automatically route to the correct rig based on issue ID prefix:
|
`bd` commands automatically route to the correct rig based on issue ID prefix:
|
||||||
|
|
||||||
```
|
```
|
||||||
bd show gt-xyz # Routes to gastown beads (from anywhere in town)
|
bd show {{ .IssuePrefix }}-xyz # Routes to {{ .RigName }} beads (from anywhere in town)
|
||||||
bd show hq-abc # Routes to town beads
|
bd show hq-abc # Routes to town beads
|
||||||
bd show bd-def # Routes to beads rig
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**How it works:**
|
**How it works:**
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ Town ({{ .TownRoot }})
|
|||||||
`bd` commands automatically route to the correct rig based on issue ID prefix:
|
`bd` commands automatically route to the correct rig based on issue ID prefix:
|
||||||
|
|
||||||
```
|
```
|
||||||
bd show gt-xyz # Routes to gastown beads (from anywhere in town)
|
bd show {{ .IssuePrefix }}-xyz # Routes to {{ .RigName }} beads (from anywhere in town)
|
||||||
bd show hq-abc # Routes to town beads
|
bd show hq-abc # Routes to town beads
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user