ready

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package ready implements the pr ready command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdReady

func NewCmdReady(f *cmdutil.Factory, runF func(*ReadyOptions) error) *cobra.Command

NewCmdReady creates the ready command

Types

type ReadyOptions

type ReadyOptions struct {
	IO         *iostreams.IOStreams
	HttpClient func() (*http.Client, error)
	BaseRepo   func() (string, error)

	// Arguments
	Repository string
	Number     int

	// Flags
	WIP   bool
	Ready bool
	Yes   bool
	JSON  bool
}

type ReadyResult added in v0.5.0

type ReadyResult struct {
	Number int    `json:"number"`
	Draft  bool   `json:"draft"`
	Owner  string `json:"owner"`
	Repo   string `json:"repo"`
	URL    string `json:"url"`
}

ReadyResult represents the JSON output for pr ready

Source Files

  • ready.go

Jump to

Keyboard shortcuts

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