瀏覽代碼

Pull request review bodies may be null

We should interpret these as empty bodies rather than erroring out
Mark Rousskov 5 年之前
父節點
當前提交
1685ef5f4e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/github.rs

+ 1 - 0
src/github.rs

@@ -138,6 +138,7 @@ pub struct Issue {
 
 #[derive(Debug, serde::Deserialize)]
 pub struct Comment {
+    #[serde(default)]
     pub body: String,
     pub html_url: String,
     pub user: User,