Documentation ¶
Index ¶
- func ListAllItems[ItemType any](ctx context.Context, ...) ([]ItemType, error)
- func ListAllJobsForARun(ctx context.Context, action *github.ActionsService, owner, repo string, ...) ([]*github.WorkflowJob, error)
- func NewGithubClient(cliCtx *cli.Context) (context.Context, *github.Client, error)
- func TargetRepo(cliCtx *cli.Context) (owner string, repo string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListAllItems ¶
func ListAllItems[ItemType any]( ctx context.Context, handler func(ctx context.Context, opt *github.ListOptions) ([]ItemType, *github.Response, error), limit int, ) ([]ItemType, error)
ListAllItems is used to list items page by page.
func ListAllJobsForARun ¶
func ListAllJobsForARun( ctx context.Context, action *github.ActionsService, owner, repo string, runID int64, ) ([]*github.WorkflowJob, error)
ListAllJobsForARun lists all jobs for a given run ID.
func NewGithubClient ¶
NewGithubClient returns github client with global flag "token".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.