github

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionsService

type ActionsService interface {
	ListWorkflowRunsByFileName(ctx context.Context, owner, repo, workflowFileName string, opts *github.ListWorkflowRunsOptions) (*github.WorkflowRuns, *github.Response, error)
	ListWorkflowJobs(ctx context.Context, owner, repo string, runID int64, opts *github.ListWorkflowJobsOptions) (*github.Jobs, *github.Response, error)
}

type Client

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

func NewClient

func NewClient(ctx context.Context) *Client

func (*Client) ListWorkflowJobs

func (c *Client) ListWorkflowJobs(ctx context.Context, logE *logrus.Entry, owner, repo string, runID int64, opts *ListWorkflowJobsOptions) ([]*WorkflowJob, *github.Response, error)

func (*Client) ListWorkflowRuns

func (c *Client) ListWorkflowRuns(ctx context.Context, owner, repo, workflowFileName string, opts *ListWorkflowRunsOptions) ([]*WorkflowRun, *github.Response, error)

type ListWorkflowJobsOptions

type ListWorkflowJobsOptions struct {
	Date   int
	Status string
	Page   int
}

type ListWorkflowRunsOptions

type ListWorkflowRunsOptions struct {
	Status string
	Page   int
}

type Response

type Response = github.Response

type WorkflowJob

type WorkflowJob struct {
	ID   int64
	Name string
	// The phase of the lifecycle that the job is currently in.
	// "queued", "in_progress", "completed", "waiting", "requested", "pending"
	Status string
	// The outcome of the job.
	// "success", "failure", "neutral", "cancelled", "skipped", "timed_out", "action_required",
	Conclusion string
	Duration   time.Duration
}

type WorkflowRun

type WorkflowRun struct {
	ID int64
	// Can be one of: completed, action_required, cancelled, failure, neutral, skipped, stale, success, timed_out, in_progress, queued, requested, waiting, pending
	Status string
}

Jump to

Keyboard shortcuts

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