feat(forge): GitLab pipelines, jobs, job logs and labels #148
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/139-gitlab-runs"
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?
Refs #139 (parent #137)
Summary
The GitLab adapter implements
RunLister,LogReaderandLabeler: box[3]lists pipelines (newest 100, withref/shafilters), a pipeline shows its jobs with their stage, job logs stream, and labels can be read and replaced. architecture.md's GitLab rows and ADR 0018 are updated (unverified: no live GitLab used).Decisions
durationis used when the list carries it (GitLab 19.4+); older servers leave it blank rather than spend one request per pipeline.Attemptis 1.PRIVATE-TOKENon every hop). #143 makes that guard client-wide.SetLabelsmaps IDs to names through the label list and refuses an unknown ID, so GitLab never auto-creates a label; label names are comma-joined (GitLab label titles can't contain commas). Colours are hex without#, as the gitea adapter hands them; a CSS colour name maps to the default.Test plan
go test -race ./...: 13 packages ok; build passes; lint with CI's golangci-lint v2.14.0: 0 issues (before the develop sync; CI re-checks after).🤖 Generated with Claude Code