Skip to main content

Module comments

Module comments 

Source
Expand description

Issue comment threads: read an issue’s comments and create, update, or delete comments (threading included).

Entry point: LinearClient::comments.

use linear_api::comments::CommentListRequest;
use linear_api::{IssueRef, LinearClient};

let client = LinearClient::from_env()?;
// The "last 5 comments" deep-view call shape:
let page = client
    .comments()
    .list_for_issue(
        IssueRef::identifier("ENG-123"),
        CommentListRequest::builder().first(5).build(),
    )
    .await?;
for comment in &page.nodes {
    println!("{}", comment.body);
}

Structs§

Comment
One comment on an issue.
CommentCreateInput
Input for CommentsService::create (commentCreate).
CommentCreateInputBuilder
Use builder syntax to set the inputs and finish with build().
CommentListRequest
Pagination controls for CommentsService::list_for_issue.
CommentListRequestBuilder
Use builder syntax to set the inputs and finish with build().
CommentParent
Reference to the parent of a threaded comment.
CommentsService
Comment operations, obtained via LinearClient::comments.