From d09b6f75cee02dfef821b7190068f81b6011ee4d Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 15 Aug 2022 22:09:17 +0800 Subject: [PATCH] fix(route): error if issue description is null --- lib/v2/github/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/github/comments.js b/lib/v2/github/comments.js index 5ef814d5f6..ebb716eef2 100644 --- a/lib/v2/github/comments.js +++ b/lib/v2/github/comments.js @@ -48,7 +48,7 @@ module.exports = async (ctx) => { let items = [ { title: `${issue.user.login} created ${user}/${repo}: ${typeDict[type].title} #${issue.number}`, - description: md.render(issue.body), + description: issue.body ? md.render(issue.body) : null, author: issue.user.login, pubDate: parseDate(issue.created_at), link: `${issue.html_url}#issue-${issue.id}`,