create

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCreate

func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Command

Types

type CreateOptions

type CreateOptions struct {
	HttpClient func() (*http.Client, error)
	Config     func() (config.Config, error)
	IO         *iostreams.IOStreams
	Remotes    func() (context.Remotes, error)
	Branch     func() (string, error)

	Interactive bool

	TitleProvided bool
	BodyProvided  bool

	RootDirOverride string
	RepoOverride    string

	Autofill bool
	WebMode  bool

	IsDraft    bool
	Title      string
	Body       string
	BaseBranch string
	HeadBranch string

	Reviewers []string
	Assignees []string
	Labels    []string
	Projects  []string
	Milestone string
}

type RegexpWriter added in v1.2.1

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

func NewRegexpWriter added in v1.2.1

func NewRegexpWriter(out io.Writer, re *regexp.Regexp, repl string) *RegexpWriter

func (*RegexpWriter) Flush added in v1.2.1

func (s *RegexpWriter) Flush() (int, error)

func (*RegexpWriter) Write added in v1.2.1

func (s *RegexpWriter) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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