49d514c050
Forgebot is a K8s operator + API service for dispatching AI agent jobs from git forge commands. Includes: - CRDs: AgentPool, AgentTask, ProviderQueue, RepositoryBinding - API server with webhook handler, task queue, and comment proxy - Operator controllers for task scheduling and job management - Gitea provider with webhook parsing and signature verification - PostgreSQL database with auto-migration - Woodpecker CI pipelines and multi-stage Dockerfiles
19 lines
260 B
Go
19 lines
260 B
Go
package gitea
|
|
|
|
import (
|
|
"code.gitea.io/sdk/gitea"
|
|
)
|
|
|
|
type Client struct {
|
|
api *gitea.Client
|
|
url string
|
|
}
|
|
|
|
func NewClient(url, token string) *Client {
|
|
client, _ := gitea.NewClient(url, gitea.SetToken(token))
|
|
return &Client{
|
|
api: client,
|
|
url: url,
|
|
}
|
|
}
|