comments

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdCommentsAdd = cli.Command{
	Name:        "add",
	Aliases:     []string{"a"},
	Usage:       "Add a comment to an issue or pull request",
	Description: "Add a comment to an issue or pull request.",
	ArgsUsage:   "<issue / pr index> [<comment body>]",
	Action:      RunCommentsAdd,
	Flags:       flags.AllDefaultFlags,
}

CmdCommentsAdd adds a comment to an issue or pull request.

View Source
var CmdCommentsDelete = cli.Command{
	Name:        "delete",
	Aliases:     []string{"rm"},
	Usage:       "Delete one or more comments by ID",
	Description: "Delete one or more comments by their comment ID. Use 'tea comments list <issue>' to find IDs.",
	ArgsUsage:   "<comment id> [<comment id>...]",
	Action:      RunCommentsDelete,
	Flags:       flags.AllDefaultFlags,
}

CmdCommentsDelete deletes one or more comments by ID.

View Source
var CmdCommentsEdit = cli.Command{
	Name:    "edit",
	Aliases: []string{"e"},
	Usage:   "Edit the body of an existing comment",
	Description: `Edit the body of an existing comment by its comment ID. Use 'tea comments list <issue>' to find IDs.

The new body can be supplied as a positional argument, piped on stdin, or (if neither is given and stdin is a terminal) entered in your $EDITOR.`,
	ArgsUsage: "<comment id> [<new body>]",
	Action:    RunCommentsEdit,
	Flags:     flags.AllDefaultFlags,
}

CmdCommentsEdit edits an existing comment.

View Source
var CmdCommentsList = cli.Command{
	Name:        "list",
	Aliases:     []string{"ls"},
	Usage:       "List comments on an issue or pull request",
	Description: "List comments on an issue or pull request. Comment IDs returned here are the IDs accepted by 'tea comments edit' and 'tea comments delete'.",
	ArgsUsage:   "<issue / pr index>",
	Action:      RunCommentsList,
	Flags: append([]cli.Flag{
		&flags.PaginationPageFlag,
		&flags.PaginationLimitFlag,
	}, flags.AllDefaultFlags...),
}

CmdCommentsList lists comments on an issue or pull request.

Functions

func RunCommentsAdd

func RunCommentsAdd(requestCtx stdctx.Context, cmd *cli.Command) error

RunCommentsAdd creates a new comment.

func RunCommentsDelete

func RunCommentsDelete(requestCtx stdctx.Context, cmd *cli.Command) error

RunCommentsDelete removes one or more comments.

func RunCommentsEdit

func RunCommentsEdit(requestCtx stdctx.Context, cmd *cli.Command) error

RunCommentsEdit updates the body of an existing comment.

func RunCommentsList

func RunCommentsList(requestCtx stdctx.Context, cmd *cli.Command) error

RunCommentsList lists comments on the given issue/PR.

Types

This section is empty.

Jump to

Keyboard shortcuts

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