Help us shape the future of Go! Take the 2026 Go Developer Survey

review

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package review implements the pr review command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdReview

func NewCmdReview(f *cmdutil.Factory, runF func(*ReviewOptions) error) *cobra.Command

NewCmdReview creates the review command

Types

type ReviewOptions

type ReviewOptions struct {
	IO              *iostreams.IOStreams
	HttpClient      func() (*http.Client, error)
	BaseRepo        func() (string, error)
	ReviewPR        func(*api.Client, string, string, int, *api.ReviewPROptions) error
	CreatePRComment func(*api.Client, string, string, int, *api.CreatePRCommentOptions) (*api.PRComment, error)

	// Arguments
	Repository string
	Number     int

	// Flags
	Approve     bool
	Request     bool
	Comment     string
	CommentFile string
	Force       bool // Force approval (admin only)
	Yes         bool // Skip confirmation for --force
	JSON        bool
}

type ReviewResult added in v0.5.0

type ReviewResult struct {
	Number  int    `json:"number"`
	Action  string `json:"action"`
	Owner   string `json:"owner"`
	Repo    string `json:"repo"`
	URL     string `json:"url"`
	Comment string `json:"comment,omitempty"`
}

ReviewResult represents the JSON output for pr review

Source Files

  • review.go

Jump to

Keyboard shortcuts

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