Distinguish "repo not registered in Woodpecker" from a real -health API error #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Real-world usage feedback after the v0.2/v0.3 grind (2026-08-01):
-healtherrored onantigravity-plugin-registrywith a bare "404" fromthe Woodpecker repo-lookup endpoint (
GET /api/repos/lookup/{owner}/ {name}ininternal/health.Client.repoID). Almost certainly means therepo simply isn't registered/enabled in Woodpecker (the same "not
registered" case
cluster:ci-agent'swoodpecker-gitea-bondskillalready handles - see how it activated
oleks/pipetreeitself earlierthis session via
POST /api/repos?forge_remote_id=...), not a genuine APIproblem (auth failure, server down, network issue) - but pipetree's
current error text doesn't say so, so a user has to already know Woodpecker
internals to tell the two apart.
Acceptance criteria
health.Client.repoID(or its caller) detects a 404 specificallyand returns/wraps a distinguishable "not registered in Woodpecker"
condition rather than a generic HTTP-status error
annotateHealth's stderr message for that case reads asinformational ("not registered in Woodpecker, skipping") rather
than as an error a user needs to debug
clear errors, distinct from the 404 case
antigravity-plugin-registry, the case that surfaced this) and areal registered one, to confirm both paths render correctly
Resolved by
0ac15b7. Verified live: -health against antigravity-plugin-registry now prints "not registered in Woodpecker, skipping" instead of a bare 404.