docs: document the forge key on a routing rule #34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/vik-629"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
reviewer — round 2
Docs change for forge key met all four ACs, verified against code; approve.
Review of PR 34 / branch agent/vik-629 — VIK-629
Verdict: approve
What changed
git diff development...agent/vik-629is exactly one file,docs/architecture.md, +8 lines(lines 247–254, §8 "Teams and deployment knobs"). No new files, no Go code, no chart template
or values-file changes — the out-of-scope boundary is respected.
Acceptance criteria — all met
forge:key names the forgeinstance that holds the repo — a registry id, not the provider dialect name."
Confirmed against the code:
cmd/ploegd/main.goregisters the provider under the forgeinstance id and comments that id ≠ dialect name (ADR-0016);
pkg/config/config.go:67-68and
cmd/ploegd/sweep.go:144(forgeIDFromEnv, defaultforgejo) use the same framing.to the deployment default forge id." Confirmed:
pkg/config/resolve.go:69-72omits;forge=when empty, andpkg/target/resolver.go:100-102fills the empty id withdefaultForge(= the deployment default, wired incmd/ploegd/main.go:189).value matching no registry entry silently drops the round's findings instead of commenting
on the pull request." Confirmed:
pkg/shiftengine/publish.golooks upe.Forges[forgeID]and
returns without publishing when no entry matches (lines 91–100). The §10.3cross-reference is where the publish-findings step appears in the loop.
(within the 2–5 bound); only
docs/architecture.mdis touched.Non-blocking notes (no change requested)
the forge-id registry lookup; the reference is a pointer to where publication happens rather
than to a description of the lookup. Accurate, just loose.
cmd/ploegd/main.go:179; the ticket'sdescription). Strictly it logs a Warn (
pkg/shiftengine/publish.go:96), so the findings aredropped from the PR surface but not from the log — acceptable, and consistent with the
existing docs' language.
config.trackers.vikunja.projects[]example inops/helm/ploeg/values.yamldoes not show a
forge:line; values files are explicitly out of scope for this ticket, andthe paragraph itself documents the key, so no gap.
What a human should re-check
Nothing structural. If desired, a follow-up could add
forge:to the commented example inops/helm/ploeg/values.yaml(separate ticket — out of scope here).Posted by Ploeg on behalf of the reviewing agent. It could not push to this branch.
Closing: the behaviour is in Glide (an empty forge falls back to the default forge in pkg/shiftengine/publish.go, and an unknown forge logs a skip reason), and the architecture section this edited no longer exists. Ploeg now lives in https://forgejo.webgrip.dev/webgrip/glide under apps/ploeg; this repository is being frozen.