Skip to content

Commit 90f9139

Browse files
pnevykdmgorsky
andauthored
feat: Add body_text and body_html to Comment model (#832)
* feat: add body_text and body_html to Comment model * Refactor GitHub Actions for Rust CI workflow Updated Rust CI workflow to use actions/checkout@v5 and added caching steps. --------- Co-authored-by: Dmytro Horskyi <dmgorsky@gmail.com>
1 parent 4fce8e0 commit 90f9139

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/models/pulls.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ pub struct Comment {
276276
pub in_reply_to_id: Option<CommentId>,
277277
pub user: Option<Author>,
278278
pub body: String,
279+
#[serde(skip_serializing_if = "Option::is_none")]
280+
pub body_text: Option<String>,
281+
#[serde(skip_serializing_if = "Option::is_none")]
282+
pub body_html: Option<String>,
279283
pub created_at: chrono::DateTime<chrono::Utc>,
280284
pub updated_at: chrono::DateTime<chrono::Utc>,
281285
pub html_url: String,

0 commit comments

Comments
 (0)