Documentation
¶
Overview ¶
internal/platform/gitea.go
internal/platform/github.go
internal/platform/platform.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform interface {
SetCommitStatus(ctx context.Context, state, description string) error
EnsureLabelExists(ctx context.Context) error
FindIssueForCommit(ctx context.Context, sha string) (int, bool, error)
CreateIssue(ctx context.Context, sha, diagnosis, provider string, failedJobs []string, runID string) (int, error)
AddComment(ctx context.Context, issueNumber int, diagnosis, provider string) error
FetchFailedJobLogs(ctx context.Context, runID string) ([]JobLog, error)
}
Platform is the port for CI platform operations.
func New ¶
New returns the appropriate Platform adapter based on name ("gitea" or "github"). baseURL is required for gitea; for github it defaults to https://api.github.com. Passing a non-empty baseURL for github overrides the default (useful in tests).
Click to show internal directories.
Click to hide internal directories.