* feat(gitea): add Gitea Go SDK integration and CLI commands Add `code.gitea.io/sdk/gitea` and create `pkg/gitea/` package for connecting to self-hosted Gitea instances. Wire into CLI as `core gitea` command group with repo, issue, PR, mirror, and sync subcommands. pkg/gitea/: - client.go: thin wrapper around SDK with config-based auth - config.go: env → config file → flags resolution - repos.go: list/get/create/delete repos, create mirrors - issues.go: list/get/create issues and pull requests - meta.go: pipeline MetaReader for structural + content signals internal/cmd/gitea/: - config: set URL/token, test connection - repos: list repos with table output - issues: list/create issues - prs: list pull requests - mirror: create GitHub→Gitea mirrors with auth - sync: upstream/main branch strategy (--setup + ongoing sync) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * style(gitea): fix gofmt formatting Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix(gitea): address Copilot review feedback - Use os.UserHomeDir() instead of sh -c "echo $HOME" for home dir expansion - Distinguish "already exists" from real errors in createMainFromUpstream - Fix package docs to match actual config resolution order - Guard token masking against short tokens (< 8 chars) - Paginate ListIssueComments in GetPRMeta and GetCommentBodies - Rename loop variable to avoid shadowing receiver in GetCommentBodies - Move gitea SDK to direct require block in go.mod Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
55 lines
2.2 KiB
Go
55 lines
2.2 KiB
Go
//go:build !ci && !php && !minimal
|
|
|
|
// full.go imports all packages for the full development binary.
|
|
//
|
|
// Build with: go build (default)
|
|
//
|
|
// This is the default build variant with all development tools:
|
|
// - dev: Multi-repo git workflows (commit, push, pull, sync)
|
|
// - ai: AI agent task management + RAG + metrics
|
|
// - go: Go module and build tools
|
|
// - php: Laravel/Composer development tools
|
|
// - build: Cross-platform compilation
|
|
// - ci: Release publishing
|
|
// - sdk: API compatibility checks
|
|
// - pkg: Package management
|
|
// - vm: LinuxKit VM management
|
|
// - docs: Documentation generation
|
|
// - setup: Repository cloning and setup
|
|
// - doctor: Environment health checks
|
|
// - test: Test runner with coverage
|
|
// - qa: Quality assurance workflows
|
|
// - monitor: Security monitoring aggregation
|
|
// - gitea: Gitea instance management (repos, issues, PRs, mirrors)
|
|
|
|
package variants
|
|
|
|
import (
|
|
// Commands via self-registration
|
|
_ "github.com/host-uk/core/internal/cmd/ai"
|
|
_ "github.com/host-uk/core/internal/cmd/ci"
|
|
_ "github.com/host-uk/core/internal/cmd/collect"
|
|
_ "github.com/host-uk/core/internal/cmd/config"
|
|
_ "github.com/host-uk/core/internal/cmd/crypt"
|
|
_ "github.com/host-uk/core/internal/cmd/deploy"
|
|
_ "github.com/host-uk/core/internal/cmd/dev"
|
|
_ "github.com/host-uk/core/internal/cmd/docs"
|
|
_ "github.com/host-uk/core/internal/cmd/doctor"
|
|
_ "github.com/host-uk/core/internal/cmd/gitcmd"
|
|
_ "github.com/host-uk/core/internal/cmd/gitea"
|
|
_ "github.com/host-uk/core/internal/cmd/go"
|
|
_ "github.com/host-uk/core/internal/cmd/help"
|
|
_ "github.com/host-uk/core/internal/cmd/monitor"
|
|
_ "github.com/host-uk/core/internal/cmd/php"
|
|
_ "github.com/host-uk/core/internal/cmd/pkgcmd"
|
|
_ "github.com/host-uk/core/internal/cmd/plugin"
|
|
_ "github.com/host-uk/core/internal/cmd/qa"
|
|
_ "github.com/host-uk/core/internal/cmd/sdk"
|
|
_ "github.com/host-uk/core/internal/cmd/security"
|
|
_ "github.com/host-uk/core/internal/cmd/setup"
|
|
_ "github.com/host-uk/core/internal/cmd/test"
|
|
_ "github.com/host-uk/core/internal/cmd/updater"
|
|
_ "github.com/host-uk/core/internal/cmd/vm"
|
|
_ "github.com/host-uk/core/internal/cmd/workspace"
|
|
_ "github.com/host-uk/core/pkg/build/buildcmd"
|
|
)
|