github

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeout = 30 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(repo string) *Client

func NewClientWithTimeout added in v0.2.0

func NewClientWithTimeout(repo string, timeout time.Duration) *Client

func (*Client) GetJobsFromRuns

func (c *Client) GetJobsFromRuns(runs []models.GHRun) ([]models.GHJob, error)

func (*Client) GetLatestRun

func (c *Client) GetLatestRun() (*models.GHRun, error)

func (*Client) GetRecentRuns

func (c *Client) GetRecentRuns(limit int) ([]models.GHRun, error)

func (*Client) GetRunByID

func (c *Client) GetRunByID(runID int) (*models.GHRun, error)

func (*Client) GetRunJobs

func (c *Client) GetRunJobs(runID int) ([]models.GHJob, error)

func (*Client) GetWorkflowRuns

func (c *Client) GetWorkflowRuns(workflowName string, limit int) ([]models.GHRun, error)

func (*Client) GetWorkflows added in v0.2.0

func (c *Client) GetWorkflows(ctx context.Context, repo string) ([]string, error)

GetWorkflows fetches the list of workflow files from a repository

func (*Client) OpenRunInBrowser

func (c *Client) OpenRunInBrowser(runID int) error

func (*Client) OpenWorkflowInBrowser

func (c *Client) OpenWorkflowInBrowser(workflowName string) error

func (*Client) RepositoryExists added in v0.2.0

func (c *Client) RepositoryExists(ctx context.Context, repo string) (bool, error)

RepositoryExists checks if a repository exists on GitHub

Jump to

Keyboard shortcuts

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