From 16821aa93ebb2633c8b3a273aa566100e18081db Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 31 Dec 2022 16:48:00 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96github=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E5=9C=A8=E4=B8=8Emarkdown=E7=9B=B8=E5=85=B3=E9=97=B4?= =?UTF-8?q?=E8=B7=9D=E4=B8=8A=E7=9A=84=E8=A1=A8=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com.msgbyte.agora/services/agora.service.dev.ts | 2 +- .../com.msgbyte.github/services/subscribe.service.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/plugins/com.msgbyte.agora/services/agora.service.dev.ts b/server/plugins/com.msgbyte.agora/services/agora.service.dev.ts index 747664da..3fb1e63e 100644 --- a/server/plugins/com.msgbyte.agora/services/agora.service.dev.ts +++ b/server/plugins/com.msgbyte.agora/services/agora.service.dev.ts @@ -75,7 +75,7 @@ class AgoraService extends TcService { !this.serverCustomerSecret ) { this.logger.warn( - '声网服务启动失败, 缺少必要的环境变量。AGORA_APP_ID, AGORA_APP_CERT, AGORA_CUSTOMER_KEY, AGORA_CUSTOMER_SECRET' + '声网服务启动失败, 缺少必要的环境变量: AGORA_APP_ID, AGORA_APP_CERT, AGORA_CUSTOMER_KEY, AGORA_CUSTOMER_SECRET' ); return; } diff --git a/server/plugins/com.msgbyte.github/services/subscribe.service.ts b/server/plugins/com.msgbyte.github/services/subscribe.service.ts index ec85b33d..d4bba408 100644 --- a/server/plugins/com.msgbyte.github/services/subscribe.service.ts +++ b/server/plugins/com.msgbyte.github/services/subscribe.service.ts @@ -190,10 +190,10 @@ class GithubSubscribeService extends TcService { let message = `[url=${userUrl}]${name}[/url] 在 ${repo} 更新了PR请求:\n网址: ${url}`; if (event.action === 'opened') { - message = `[url=${userUrl}]${name}[/url] 在 ${repo} 创建了PR请求:\n${title}\n[markdown]${body}[/markdown]\n\n网址: ${url}`; + message = `[url=${userUrl}]${name}[/url] 在 ${repo} 创建了PR请求:\n${title}\n[markdown]${body}[/markdown]\n网址: ${url}`; } else if (event.action === 'created') { const comment = event.comment; - message = `[url=${userUrl}]${name}[/url] 在 ${repo} 回复了PR请求:\n${title}\n[markdown]${comment.body}[/markdown]\n\n网址: ${url}`; + message = `[url=${userUrl}]${name}[/url] 在 ${repo} 回复了PR请求:\n${title}\n[markdown]${comment.body}[/markdown]\n网址: ${url}`; } else if (event.action === 'closed') { message = `[url=${userUrl}]${name}[/url] 在 ${repo} 关闭了PR请求:\n${title}\n\n网址: ${url}`; } @@ -210,10 +210,10 @@ class GithubSubscribeService extends TcService { if (event.action === 'opened') { // @ts-ignore 这里不知道为什么判断issue为never 跳过 const body = event.issue.body; - message = `[url=${userUrl}]${name}[/url] 在 ${repo} 创建了Issue:\n${title}\n[markdown]${body}[/markdown]\n\n网址: ${url}`; + message = `[url=${userUrl}]${name}[/url] 在 ${repo} 创建了Issue:\n${title}\n[markdown]${body}[/markdown]\n网址: ${url}`; } else if (event.action === 'created') { const comment = event.comment; - message = `[url=${userUrl}]${name}[/url] 在 ${repo} 回复了Issue:\n${title}\n回复内容:[markdown]${comment.body}[/markdown]\n\n网址: ${url}`; + message = `[url=${userUrl}]${name}[/url] 在 ${repo} 回复了Issue:\n${title}\n回复内容:[markdown]${comment.body}[/markdown]\n网址: ${url}`; } else if (event.action === 'closed') { message = `[url=${userUrl}]${name}[/url] 在 ${repo} 关闭了Issue:\n${title}\n\n网址: ${url}`; }