瀏覽代碼

Merge pull request #1497 from Mark-Simulacrum/fix-webhooks

Issue body can be null now
Mark Rousskov 3 年之前
父節點
當前提交
63166295b3
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/github.rs

+ 1 - 0
src/github.rs

@@ -245,6 +245,7 @@ pub struct PullRequestDetails {
 #[derive(Debug, serde::Deserialize)]
 #[derive(Debug, serde::Deserialize)]
 pub struct Issue {
 pub struct Issue {
     pub number: u64,
     pub number: u64,
+    #[serde(default)]
     pub body: String,
     pub body: String,
     created_at: chrono::DateTime<Utc>,
     created_at: chrono::DateTime<Utc>,
     pub updated_at: chrono::DateTime<Utc>,
     pub updated_at: chrono::DateTime<Utc>,