githubstatus

package
v0.12.14-0...-eb10216 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GitHub githubclient.GitHubClient
	DB     db.Database
}

Config holds the dependencies required to create a Service.

type Service

type Service struct {
	hydrav1.UnimplementedGitHubStatusServiceServer
	// contains filtered or unexported fields
}

Service is a Restate virtual object keyed by deployment ID that owns all GitHub deployment status reporting. It persists the GitHub deployment ID and PR comment ID in Restate K/V state so that any service can fire-and-forget status updates without needing to carry GitHub context.

func New

func New(cfg Config) *Service

New creates a new GitHubStatusService virtual object.

func (*Service) Init

Init creates the GitHub deployment and PR comment, persisting their IDs in Restate state. It is called once per deployment, after the build step.

func (*Service) ReportStatus

ReportStatus updates both the GitHub deployment status and the PR comment. All calls are fire-and-forget — errors are logged, never propagated.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL