Documentation
¶
Overview ¶
Package create implements the pr create command
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOptions ¶
type CreateOptions struct {
IO *iostreams.IOStreams
HttpClient func() (*http.Client, error)
Branch func() (string, error)
ExecGitCommand func(string, ...string) (string, error)
CreatePR func(*api.Client, string, string, *api.CreatePROptions) (*api.PullRequest, error)
OpenBrowser func(string) error
// Arguments
Repository string
// Flags
Title string
Body string
Head string
Base string
Draft bool
Fill bool
Web bool
Fork string // 跨仓库 PR:fork 项目路径【owner/repo】
}
Source Files
¶
- create.go
Click to show internal directories.
Click to hide internal directories.