commands

package
v0.0.0-...-ab31e99 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func NewGithubClient(cliCtx *cli.Context) (context.Context, *github.Client, error)

NewGithubClient returns github client with global flag "token".

func TargetRepo

func TargetRepo(cliCtx *cli.Context) (owner string, repo string)

TargetRepo returns target owner and repo from global "owner" and "repo" flags.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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