From 18fe5bca20c0f0f459f22cd634761121aa6338d8 Mon Sep 17 00:00:00 2001 From: NagyVikt Date: Tue, 21 Apr 2026 12:50:58 +0200 Subject: [PATCH] Point public frontend links at the canonical frontend mirror GitGuardex still exposed the old frontend mirror target in README instructions, workflow defaults, and package metadata. This aligns those surfaces with recodeee/gitguardex-frontend so the public repo metadata and the mirror automation point at the same destination. Constraint: User requested the repo surface link the frontend through recodeee/gitguardex-frontend Rejected: Keep homepage on guardextutorial.com while only changing docs | would leave public metadata inconsistent with the requested frontend link Confidence: high Scope-risk: narrow Directive: When the frontend mirror target changes again, update package metadata, README setup notes, and workflow defaults together Tested: node --test test/metadata.test.js Tested: openspec validate agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45 --type change --strict Not-tested: Live sync-frontend-mirror workflow run against the new target repo --- .github/workflows/sync-frontend-mirror.yml | 2 +- README.md | 6 +++--- .../.openspec.yaml | 2 ++ .../notes.md | 5 +++++ .../specs/frontend-mirror-links/spec.md | 13 +++++++++++++ package.json | 2 +- test/metadata.test.js | 2 +- 7 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 openspec/changes/agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45/.openspec.yaml create mode 100644 openspec/changes/agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45/notes.md create mode 100644 openspec/changes/agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45/specs/frontend-mirror-links/spec.md diff --git a/.github/workflows/sync-frontend-mirror.yml b/.github/workflows/sync-frontend-mirror.yml index dc3e70f..6779d5e 100644 --- a/.github/workflows/sync-frontend-mirror.yml +++ b/.github/workflows/sync-frontend-mirror.yml @@ -21,7 +21,7 @@ jobs: sync: runs-on: ubuntu-latest env: - TARGET_REPO: ${{ vars.GUARDEX_FRONTEND_MIRROR_REPO || 'Webu-PRO/guardex-frontend' }} + TARGET_REPO: ${{ vars.GUARDEX_FRONTEND_MIRROR_REPO || 'recodeee/gitguardex-frontend' }} TARGET_BRANCH: ${{ vars.GUARDEX_FRONTEND_MIRROR_BRANCH || 'main' }} SOURCE_PREFIX: frontend SYNC_TOKEN: ${{ secrets.GUARDEX_FRONTEND_MIRROR_PAT }} diff --git a/README.md b/README.md index 60373e6..0e48d67 100644 --- a/README.md +++ b/README.md @@ -462,17 +462,17 @@ If `package.json` exists, setup also adds `agent:*` helper scripts. ## Frontend mirror -- Standalone frontend repo: +- Standalone frontend repo: - This repo tracks the frontend under `frontend/` and auto-mirrors it via `.github/workflows/sync-frontend-mirror.yml` on changes to `main`. Setup (in this repo): 1. `Settings → Secrets and variables → Actions` -2. Add secret `GUARDEX_FRONTEND_MIRROR_PAT` with `contents:write` on `Webu-PRO/guardex-frontend` +2. Add secret `GUARDEX_FRONTEND_MIRROR_PAT` with `contents:write` on `recodeee/gitguardex-frontend` Optional overrides (Actions Variables): -- `GUARDEX_FRONTEND_MIRROR_REPO` (default `Webu-PRO/guardex-frontend`) +- `GUARDEX_FRONTEND_MIRROR_REPO` (default `recodeee/gitguardex-frontend`) - `GUARDEX_FRONTEND_MIRROR_BRANCH` (default `main`) Manual run: diff --git a/openspec/changes/agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45/.openspec.yaml b/openspec/changes/agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45/.openspec.yaml new file mode 100644 index 0000000..4b8c565 --- /dev/null +++ b/openspec/changes/agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45/.openspec.yaml @@ -0,0 +1,2 @@ +schema: spec-driven +created: 2026-04-21 diff --git a/openspec/changes/agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45/notes.md b/openspec/changes/agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45/notes.md new file mode 100644 index 0000000..583cce4 --- /dev/null +++ b/openspec/changes/agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45/notes.md @@ -0,0 +1,5 @@ +# T1 Notes + +- Handoff: own `README.md`, `package.json`, `.github/workflows/sync-frontend-mirror.yml`, and `test/metadata.test.js` to point GitGuardex at `recodeee/gitguardex-frontend` instead of the old frontend target. +- Change the public homepage metadata to the new frontend repo link so the repo surface and package metadata stay aligned. +- Keep README mirror instructions and workflow defaults consistent with the new mirror destination. diff --git a/openspec/changes/agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45/specs/frontend-mirror-links/spec.md b/openspec/changes/agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45/specs/frontend-mirror-links/spec.md new file mode 100644 index 0000000..6923de3 --- /dev/null +++ b/openspec/changes/agent-codex-point-frontend-links-at-recodeee-fronten-2026-04-21-12-45/specs/frontend-mirror-links/spec.md @@ -0,0 +1,13 @@ +## ADDED Requirements + +### Requirement: Canonical frontend mirror links stay aligned +GitGuardex MUST expose `https://github.com/recodeee/gitguardex-frontend` as the canonical standalone frontend repo across public metadata and default mirror configuration. + +#### Scenario: Public metadata points at the canonical frontend repo +- **WHEN** maintainers inspect `package.json` homepage metadata or the README frontend mirror section +- **THEN** they see `https://github.com/recodeee/gitguardex-frontend` +- **AND** the older `Webu-PRO/guardex-frontend` target is not presented as the default frontend repo + +#### Scenario: Mirror workflow defaults to the canonical frontend repo +- **WHEN** `.github/workflows/sync-frontend-mirror.yml` runs without `GUARDEX_FRONTEND_MIRROR_REPO` +- **THEN** the workflow defaults `TARGET_REPO` to `recodeee/gitguardex-frontend` diff --git a/package.json b/package.json index 28acba1..a8dfd04 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "bugs": { "url": "https://github.com/recodeee/gitguardex/issues" }, - "homepage": "https://guardextutorial.com", + "homepage": "https://github.com/recodeee/gitguardex-frontend", "funding": "https://github.com/sponsors/recodeecom", "publishConfig": { "access": "public" diff --git a/test/metadata.test.js b/test/metadata.test.js index 4d9b667..a293d07 100644 --- a/test/metadata.test.js +++ b/test/metadata.test.js @@ -16,7 +16,7 @@ test('package manifest includes repository and support metadata', () => { assert.equal(pkg.repository?.url, 'git+https://github.com/recodeee/gitguardex.git'); assert.equal(pkg.bugs?.url, 'https://github.com/recodeee/gitguardex/issues'); - assert.equal(pkg.homepage, 'https://guardextutorial.com'); + assert.equal(pkg.homepage, 'https://github.com/recodeee/gitguardex-frontend'); assert.equal(pkg.publishConfig?.access, 'public'); });