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 ¶
RunCommentsAdd creates a new comment.
func RunCommentsDelete ¶
RunCommentsDelete removes one or more comments.
func RunCommentsEdit ¶
RunCommentsEdit updates the body of an existing comment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.