feat(ploeg): let registered GitLab targets pass the readiness gate #151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ryangr0/ploeg-gitlab-repository-inspector"
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?
The readiness gate is built only from forges that implement
RepositoryInspector, and a target whose forge has no inspector is never
ready. The GitLab provider did not implement it, so every registered
GitLab target was refused at config load, at ingest and at claim, even
when the project was healthy.
The GitLab provider now implements InspectRepository with the Forgejo
semantics. It reads the project by its URL-encoded full path, so
subgroups work, and reports archived, pull-mirror and default-branch
state. It checks AGENTS.md on the base branch, or the default branch
when none is set, with a HEAD on the repository files API. A missing
file is a not-ready verdict; a missing project or any other forge
failure is an error, which the gate reports as unknown and retries. A
project with no default branch has no AGENTS.md. The routing how-to and
ADR-0038's history record the change.
Caveat: GitLab only returns the mirror flag to tokens with enough project access; with a low-privilege token a pull mirror reads as not a mirror.
Verified with
mise run verifyon the pinned toolchain (all gates passed).Ticket: https://vikunja.webgrip.dev/tasks/1753
🤖 Generated with Claude Code