Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdCreate ¶
func NewIssueState ¶ added in v1.3.0
func NewIssueState(ctx CreateContext, opts CreateOptions) (*shared.IssueMetadataState, error)
Types ¶
type CreateContext ¶ added in v1.3.0
type CreateContext struct { // This struct stores contextual data about the creation process and is for building up enough // data to create a pull request RepoContext *context.ResolvedRemotes BaseRepo *api.Repository HeadRepo ghrepo.Interface BaseTrackingBranch string BaseBranch string HeadBranch string HeadBranchLabel string HeadRemote *context.Remote IsPushEnabled bool Client *api.Client }
func NewCreateContext ¶ added in v1.3.0
func NewCreateContext(opts *CreateOptions) (*CreateContext, error)
type CreateOptions ¶
type CreateOptions struct { // This struct stores user input and factory functions HttpClient func() (*http.Client, error) Config func() (config.Config, error) IO *iostreams.IOStreams Remotes func() (context.Remotes, error) Branch func() (string, error) Browser browser Finder shared.PRFinder TitleProvided bool BodyProvided bool RootDirOverride string RepoOverride string Autofill bool WebMode bool RecoverFile string IsDraft bool Title string Body string BaseBranch string HeadBranch string Reviewers []string Assignees []string Labels []string Projects []string Milestone string MaintainerCanModify bool }
type RegexpWriter ¶ added in v1.2.1
type RegexpWriter struct {
// contains filtered or unexported fields
}
func NewRegexpWriter ¶ added in v1.2.1
func (*RegexpWriter) Flush ¶ added in v1.2.1
func (s *RegexpWriter) Flush() (int, error)
Click to show internal directories.
Click to hide internal directories.