Versions in this module Expand all Collapse all v3 v3.2.0 Aug 9, 2026 v3.1.0 Aug 8, 2026 Changes in this version + type Client struct + func NewClient(token, owner, repo string) *Client + func NewClientFromEnv() (*Client, error) + func NewClientWithBaseURL(token, owner, repo, baseURL string) (*Client, error) + func (c *Client) CreatePullRequest(ctx context.Context, title, body, head, base string, draft bool) (int, string, error) + func (c *Client) DeleteAllArtifacts(ctx context.Context) (deleted int, freedBytes int64, err error) + func (c *Client) DeleteArtifact(ctx context.Context, artifactID int64) error + func (c *Client) DeleteArtifactsBefore(ctx context.Context, before time.Time) (deleted int, freedBytes int64, err error) + func (c *Client) DeleteExpiredArtifacts(ctx context.Context) (deleted int, freedBytes int64, err error) + func (c *Client) DownloadArtifact(ctx context.Context, artifactID int64) (io.ReadCloser, error) + func (c *Client) GetLatestRunForBranch(ctx context.Context, branch string) (*remote.Workflow, error) + func (c *Client) GetLatestRunForTag(ctx context.Context, tag string) (*remote.Workflow, error) + func (c *Client) GetLatestWorkflow(ctx context.Context, branch string) (*remote.Workflow, error) + func (c *Client) GetPullRequest(ctx context.Context, prNumber int) (*github.PullRequest, error) + func (c *Client) GetPullRequestByBranch(ctx context.Context, branch string) (int, string, error) + func (c *Client) GetPullRequestChecks(ctx context.Context, prNumber int) (*remote.PRChecks, error) + func (c *Client) GetPullRequestDetails(ctx context.Context, prNumber int) (*remote.PullRequestDetails, error) + func (c *Client) GetPullRequestReviews(ctx context.Context, prNumber int) ([]*github.PullRequestReview, error) + func (c *Client) GetPullRequestTitle(ctx context.Context, prNumber int) (string, error) + func (c *Client) GetWorkflowRun(ctx context.Context, runID string) (*remote.Workflow, error) + func (c *Client) ListArtifacts(ctx context.Context) (*remote.ArtifactStats, error) + func (c *Client) ListPullRequests(ctx context.Context, state string) ([]*github.PullRequest, error) + func (c *Client) ListRunArtifacts(ctx context.Context, runID string) ([]remote.Artifact, error) + func (c *Client) ListRuns(ctx context.Context, workflowFile, branch string, limit int) ([]remote.Workflow, error) + func (c *Client) MarkPullRequestReady(ctx context.Context, prNumber int) error + func (c *Client) MergePullRequest(ctx context.Context, prNumber int, method string) error + func (c *Client) RerunWorkflow(ctx context.Context, runID string, failedOnly bool) error + func (c *Client) TriggerWorkflow(ctx context.Context, workflowFile, ref string, inputs map[string]string) (*remote.Workflow, error) + func (c *Client) UpdatePullRequest(ctx context.Context, prNumber int, title, body string) error + func (c *Client) WaitForChecksToStart(ctx context.Context, prNumber int, expectedSHA string, timeout time.Duration) (string, *remote.PRChecks, error) + func (c *Client) WatchPullRequestChecks(ctx context.Context, prNumber int) (<-chan remote.PRChecksUpdate, error) + func (c *Client) WatchWorkflow(ctx context.Context, workflowID string) (<-chan remote.WorkflowUpdate, error) Other modules containing this package github.com/cidx-org/cidx github.com/cidx-org/cidx/v2