Breaking change. The monorepo's gitea host was previously inferred from the first target's subrepo_url, silently coupling the two and breaking on any multi-host setup (monorepo on host A, target on host B). v2.0.0 replaces the inference with a required josh.monorepo_url field that mirrors subrepo_url — same parsing, same SSH/HTTPS auth options, same shape. - schema_version: 2 is now required; v1 configs are rejected with a clear migration error - josh.monorepo_url is required; josh.monorepo_auth is optional (default https) - mono_auth_url() in lib/auth.sh mirrors subrepo_auth_url() - MONOREPO_API derives from monorepo_url's host instead of .[0].gitea_host; env-var override preserved as escape hatch - initial_import() and force-push call mono_auth_url() instead of building URLs inline - ADR-012 documents the rationale; CHANGELOG includes migration snippet Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
32 lines
753 B
YAML
32 lines
753 B
YAML
# Test fixture: multi-target config
|
|
schema_version: 2
|
|
josh:
|
|
proxy_url: "https://josh.test.local"
|
|
monorepo_path: "org/monorepo"
|
|
monorepo_url: "git@gitea.test.local:org/monorepo.git"
|
|
|
|
targets:
|
|
- name: "app-a"
|
|
subfolder: "services/app-a"
|
|
josh_filter: ":/services/app-a"
|
|
subrepo_url: "https://gitea.test.local/ext/app-a.git"
|
|
subrepo_auth: "https"
|
|
branches:
|
|
main: main
|
|
forward_only: []
|
|
|
|
- name: "app-b"
|
|
subfolder: "services/app-b"
|
|
subrepo_url: "git@gitea.test.local:ext/app-b.git"
|
|
subrepo_auth: "ssh"
|
|
subrepo_ssh_key_var: "APP_B_SSH_KEY"
|
|
branches:
|
|
main: main
|
|
develop: dev
|
|
forward_only: [develop]
|
|
|
|
bot:
|
|
name: "test-bot"
|
|
email: "test-bot@test.local"
|
|
trailer: "Josh-Sync-Origin"
|