Implements the Forge interface for Gitea instances (tested against git.catlow.cloud, Gitea v1.26.4). The forge.New factory now dispatches on forge type, and config validation accepts 'gitea'. Changes: - internal/forge/gitea.go — GiteaClient implementing all 11 Forge methods: issue polling (assigned + label), comments, PR creation, PR state reconciliation, issue closure, reactions, state labels, push verification. Handles edge cases: not-found PRs return 'closed', GetUserByName errors from the Gitea SDK are mapped to user-friendly messages. - internal/forge/forge.go — New() factory dispatching on forge type (github/gitea). GitHub constructor renamed to NewGitHub. - internal/forge/github_test.go — updated to use New() signature - internal/config/config.go — forge.type accepts 'gitea', BotEmail defaults change per forge type (gitea uses @gitea.local) - cmd/archied/main.go — passes cfg.Forge.Type to forge.New() Dependencies: added code.gitea.io/sdk/gitea v0.25.1 End-to-end verified against live Gitea instance: daemon starts clean, registry built (5 workflows), web UI listening, no errors or warnings.
65 lines
2.5 KiB
AMPL
65 lines
2.5 KiB
AMPL
module github.com/samcharles93/archie-core
|
|
|
|
go 1.26.2
|
|
|
|
require (
|
|
github.com/BurntSushi/toml v1.6.0
|
|
github.com/google/go-github/v78 v78.0.0
|
|
modernc.org/sqlite v1.54.0
|
|
)
|
|
|
|
require (
|
|
code.gitea.io/sdk/gitea v0.25.1 // indirect
|
|
github.com/42wim/httpsig v1.2.4 // indirect
|
|
github.com/Microsoft/go-winio v0.6.2 // indirect
|
|
github.com/antithesishq/antithesis-sdk-go v0.7.0-default-no-op // indirect
|
|
github.com/containerd/errdefs v1.0.0 // indirect
|
|
github.com/containerd/errdefs/pkg v0.3.0 // indirect
|
|
github.com/davidmz/go-pageant v1.0.2 // indirect
|
|
github.com/distribution/reference v0.6.0 // indirect
|
|
github.com/docker/go-connections v0.7.0 // indirect
|
|
github.com/docker/go-units v0.5.0 // indirect
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/felixge/httpsnoop v1.0.4 // indirect
|
|
github.com/go-fed/httpsig v1.1.0 // indirect
|
|
github.com/go-logr/logr v1.4.2 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/google/go-querystring v1.1.0 // indirect
|
|
github.com/google/go-tpm v0.9.8 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/hashicorp/go-version v1.9.0 // indirect
|
|
github.com/klauspost/compress v1.18.6 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/minio/highwayhash v1.0.4 // indirect
|
|
github.com/moby/docker-image-spec v1.3.1 // indirect
|
|
github.com/nats-io/jwt/v2 v2.8.2 // indirect
|
|
github.com/nats-io/nkeys v0.4.16 // indirect
|
|
github.com/nats-io/nuid v1.0.1 // indirect
|
|
github.com/ncruces/go-strftime v1.0.0 // indirect
|
|
github.com/opencontainers/go-digest v1.0.0 // indirect
|
|
github.com/opencontainers/image-spec v1.1.1 // indirect
|
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
|
|
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
|
|
go.opentelemetry.io/otel v1.35.0 // indirect
|
|
go.opentelemetry.io/otel/metric v1.35.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.35.0 // indirect
|
|
golang.org/x/crypto v0.53.0 // indirect
|
|
golang.org/x/sys v0.46.0 // indirect
|
|
golang.org/x/time v0.15.0 // indirect
|
|
modernc.org/libc v1.74.1 // indirect
|
|
modernc.org/mathutil v1.7.1 // indirect
|
|
modernc.org/memory v1.11.0 // indirect
|
|
)
|
|
|
|
require (
|
|
github.com/moby/moby/api v1.55.0
|
|
github.com/moby/moby/client v0.5.0
|
|
github.com/nats-io/nats-server/v2 v2.14.3
|
|
github.com/nats-io/nats.go v1.52.0
|
|
github.com/samcharles93/ai-sdk v0.1.17
|
|
github.com/traefik/yaegi v0.16.1
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|