Documentation
¶
Index ¶
- type Client
- func (cc *Client) AddReaction(targetID, emoji string) error
- func (cc *Client) CreateComment(issueID, body string) (*core.Comment, error)
- func (cc *Client) CreateCommentReply(issueID, parentID, body string) (*core.Comment, error)
- func (cc *Client) GetCommentWithReplies(commentID string) (*core.CommentWithReplies, error)
- func (cc *Client) GetIssueComments(issueID string) ([]core.Comment, error)
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 ¶
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 ¶
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 ¶
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.