review

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 9 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)
	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
	Force   bool // Force approval (admin only)
}

Source Files

  • review.go

Jump to

Keyboard shortcuts

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