Documentation ¶
Index ¶
- func IssueFromArgWithFields(httpClient *http.Client, baseRepoFn func() (ghrepo.Interface, error), ...) (*api.Issue, ghrepo.Interface, error)
- func IssueNumberAndRepoFromArg(arg string) (int, ghrepo.Interface, error)
- func IssuesFromArgsWithFields(httpClient *http.Client, baseRepoFn func() (ghrepo.Interface, error), ...) ([]*api.Issue, ghrepo.Interface, error)
- func PrintIssues(io *iostreams.IOStreams, now time.Time, prefix string, totalCount int, ...)
- type PartialLoadError
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
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.
Types ¶
type PartialLoadError ¶ added in v2.3.0
type PartialLoadError struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.