comments

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

CommentClient handles all comment and reaction operations for the Linear API. It uses the shared BaseClient for HTTP communication and focuses on collaboration features like comments, replies, and reactions.

func NewClient

func NewClient(base *core.BaseClient) *Client

NewCommentClient creates a new comment client with the provided base client

func (*Client) AddReaction

func (cc *Client) AddReaction(targetID, emoji string) error

AddReaction adds an emoji reaction to an issue or comment Why: Reactions provide quick, non-verbal feedback on issues and comments. They're useful for acknowledging, agreeing, or expressing sentiment.

func (*Client) CreateComment

func (cc *Client) CreateComment(issueID, body string) (*core.Comment, error)

CreateComment creates a new comment on an issue Why: Comments are essential for collaboration on issues. This method enables users to add context, updates, and discussions to issues.

func (*Client) CreateCommentReply

func (cc *Client) CreateCommentReply(issueID, parentID, body string) (*core.Comment, error)

CreateCommentReply creates a reply to an existing comment Why: Threaded discussions allow for more organized conversations. This method enables users to reply directly to specific comments.

func (*Client) GetCommentWithReplies

func (cc *Client) GetCommentWithReplies(commentID string) (*core.CommentWithReplies, error)

GetCommentWithReplies retrieves a comment and all its replies Why: Understanding the full context of a discussion requires seeing all replies. This method provides the complete comment thread.

func (*Client) GetIssueComments

func (cc *Client) GetIssueComments(issueID string) ([]core.Comment, error)

GetIssueComments retrieves all comments for an issue

Jump to

Keyboard shortcuts

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