Add godoc comments to exported symbols in pkg/cmd/pr
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
16c6500c82
commit
5de7a10080
36 changed files with 200 additions and 5 deletions
|
|
@ -16,6 +16,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
// UpdateBranchOptions holds the configuration for the pr update-branch command.
|
||||
type UpdateBranchOptions struct {
|
||||
HttpClient func() (*http.Client, error)
|
||||
IO *iostreams.IOStreams
|
||||
|
|
@ -27,6 +28,7 @@ type UpdateBranchOptions struct {
|
|||
Rebase bool
|
||||
}
|
||||
|
||||
// NewCmdUpdateBranch creates the cobra command for updating a pull request branch with the latest base branch changes.
|
||||
func NewCmdUpdateBranch(f *cmdutil.Factory, runF func(*UpdateBranchOptions) error) *cobra.Command {
|
||||
opts := &UpdateBranchOptions{
|
||||
IO: f.IOStreams,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue