comment

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Create a new comment even if it already exists
	CreateCommentStrategy = "create"
	// Create a new comment only if it doesn't already exist
	CreateIfNotExistsCommentStrategy = "create-if-not-exists"
	// Delete a comment if it exists and create it again
	DeleteAndCreateCommentStrategy = "delete-and-create"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	scmhelpers.PullRequestOptions

	Comment  string
	Result   *scm.PullRequest
	Strategy string
}

Options the options for the command

func NewCmdPullRequestComment

func NewCmdPullRequestComment() (*cobra.Command, *Options)

NewCmdPullRequestComment creates a command object for the command

func (*Options) Run

func (o *Options) Run() error

Run implements the command

Jump to

Keyboard shortcuts

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