shared

package
v2.49.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IssueFromArgWithFields added in v2.3.0

func IssueFromArgWithFields(httpClient *http.Client, baseRepoFn func() (ghrepo.Interface, error), arg string, fields []string) (*api.Issue, ghrepo.Interface, error)

IssueFromArgWithFields loads an issue or pull request with the specified fields. If some of the fields could not be fetched by GraphQL, this returns a non-nil issue and a *PartialLoadError.

func IssueNumberAndRepoFromArg added in v2.19.0

func IssueNumberAndRepoFromArg(arg string) (int, ghrepo.Interface, error)

Returns the issue number and repo if the issue URL is provided. If only the issue number is provided, returns the number and nil repo.

func IssuesFromArgsWithFields added in v2.28.0

func IssuesFromArgsWithFields(httpClient *http.Client, baseRepoFn func() (ghrepo.Interface, error), args []string, fields []string) ([]*api.Issue, ghrepo.Interface, error)

IssuesFromArgWithFields loads 1 or more issues or pull requests with the specified fields. If some of the fields could not be fetched by GraphQL, this returns non-nil issues and a *PartialLoadError.

func PrintIssues

func PrintIssues(io *iostreams.IOStreams, now time.Time, prefix string, totalCount int, issues []api.Issue)

Types

type PartialLoadError added in v2.3.0

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

Jump to

Keyboard shortcuts

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