feat(forge): refuse loudly when the client cannot speak the forge
The preflight half of #188, landed first so it stands alone: the forge is
decided once, before any sweep, and a client that cannot speak it exits
non-zero with a named reason.
Measured against forgejo.heavyduty.builders at 84bb1a4 — two of the three
actions reported SUCCESS having read nothing:
labels-scope exit 0 "no .github/labeler.yml" (the file is HTTP 200)
labels-reconcile exit 0 "reconciled." (zero PRs enumerated)
issueflow-reconcile exit 1 "unexpected end of JSON input"
labels-reconcile's blind-sweep warning (#96) could not fire: it counts
unreadable PRs against a list `gh pr list` never produced, and a process
substitution's failure does not trip set -e, so total stayed 0. Installing
gh makes it worse, silencing the one loud failure.
Detection is measured, not inferred from docs: a real forgejo-runner v6.3.1
job (probe task 278) shows Forgejo populating the whole GITHUB_* namespace,
so GITHUB_ACTIONS proves nothing. GITHUB_API_URL's shape, GITEA_ACTIONS and
GITHUB_SERVER_URL do. The same probe shows the runner image carries neither
gh nor stoke, which is what makes the forgejo backend REST.
Tests declare CEREMONY_FORGE at the forge boundary rather than stubbing gh
and staying silent about the forge — the boundary move term 5 asks for.
Refs #188
2026-08-02 18:29:08 +00:00
|
|
|
### Added
|
|
|
|
|
|
|
|
|
|
- `lib/forge.sh` — the forge selector: `forge_detect` names the forge from
|
|
|
|
|
the runner's own environment, `forge_client` names the client it needs, and
|
|
|
|
|
`forge_preflight` refuses loudly before any sweep when the two disagree
|
|
|
|
|
(#188).
|
|
|
|
|
- The reconcilers and `labels-scope` run that preflight first, so a
|
|
|
|
|
GitHub-shaped client on a Forgejo instance is a named refusal instead of a
|
|
|
|
|
sweep that reads nothing and reports success (#188).
|
2026-08-02 18:41:03 +00:00
|
|
|
- `lib/closes_references.sh` — the closing-keyword parser, sibling of
|
|
|
|
|
`refs_references`, so "which issues does this PR close" is answered from a
|
|
|
|
|
PR body rather than from GitHub's GraphQL API (#188).
|
|
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
|
|
- `issueflow-reconcile` gathers open and merged PRs over REST instead of
|
|
|
|
|
`gh api graphql`. Forgejo serves no GraphQL at all, so the two queries were
|
|
|
|
|
replaced rather than translated; both forges return `number` and `body`
|
|
|
|
|
from `/pulls` in the same shape (#188).
|
feat(forge): refuse loudly when the client cannot speak the forge
The preflight half of #188, landed first so it stands alone: the forge is
decided once, before any sweep, and a client that cannot speak it exits
non-zero with a named reason.
Measured against forgejo.heavyduty.builders at 84bb1a4 — two of the three
actions reported SUCCESS having read nothing:
labels-scope exit 0 "no .github/labeler.yml" (the file is HTTP 200)
labels-reconcile exit 0 "reconciled." (zero PRs enumerated)
issueflow-reconcile exit 1 "unexpected end of JSON input"
labels-reconcile's blind-sweep warning (#96) could not fire: it counts
unreadable PRs against a list `gh pr list` never produced, and a process
substitution's failure does not trip set -e, so total stayed 0. Installing
gh makes it worse, silencing the one loud failure.
Detection is measured, not inferred from docs: a real forgejo-runner v6.3.1
job (probe task 278) shows Forgejo populating the whole GITHUB_* namespace,
so GITHUB_ACTIONS proves nothing. GITHUB_API_URL's shape, GITEA_ACTIONS and
GITHUB_SERVER_URL do. The same probe shows the runner image carries neither
gh nor stoke, which is what makes the forgejo backend REST.
Tests declare CEREMONY_FORGE at the forge boundary rather than stubbing gh
and staying silent about the forge — the boundary move term 5 asks for.
Refs #188
2026-08-02 18:29:08 +00:00
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
|
|
- `labels-reconcile` and `labels-scope` no longer exit 0 on a Forgejo
|
|
|
|
|
consumer having read zero facts — measured on `heavy-duty/rig`, where the
|
|
|
|
|
sweep printed `reconciled.` over an empty PR list and scope reported "no
|
|
|
|
|
labeler.yml" for a file that exists (#188).
|