Commit 92ad8a68 authored by 黎博's avatar 黎博

暂不发送附件

parent 50365eb7
...@@ -80,11 +80,12 @@ public class WebhookServiceImpl implements WebhookService { ...@@ -80,11 +80,12 @@ public class WebhookServiceImpl implements WebhookService {
content += "> " + desc + "\n\n"; content += "> " + desc + "\n\n";
} }
} }
if (attachmentList.size() > 0) { // 暂时不用
for (String attachment: attachmentList) { // if (attachmentList.size() > 0) {
content += "> ![](" + attachment + ")\n" ; // for (String attachment: attachmentList) {
} // content += "> ![](" + attachment + ")\n" ;
} // }
// }
DingdingUtils.sendToDingding(DingdingUtils.buildMarkdownMsg(title, content, true), webhook); DingdingUtils.sendToDingding(DingdingUtils.buildMarkdownMsg(title, content, true), webhook);
} }
// BUG更新的时候发送通知 // BUG更新的时候发送通知
...@@ -108,7 +109,7 @@ public class WebhookServiceImpl implements WebhookService { ...@@ -108,7 +109,7 @@ public class WebhookServiceImpl implements WebhookService {
content += "概要:[" + summary + "](" + issueUrl + ")"+ "\n\n"; content += "概要:[" + summary + "](" + issueUrl + ")"+ "\n\n";
content += "状态变更为:【已解决】\n\n"; content += "状态变更为:【已解决】\n\n";
// content += "状态变更为:【已解决】, 解决结果为:【" + JsonPath.read(jiraData, "$.changelog.items[0].toString") + "】\n\n"; // content += "状态变更为:【已解决】, 解决结果为:【" + JsonPath.read(jiraData, "$.changelog.items[0].toString") + "】\n\n";
content += "请相关同学跟进验收"; content += "请相关同学跟进验收🙏";
DingdingUtils.sendToDingding(DingdingUtils.buildMarkdownMsg(title, content, false), webhook); DingdingUtils.sendToDingding(DingdingUtils.buildMarkdownMsg(title, content, false), webhook);
break; break;
case "issue_reopened": case "issue_reopened":
...@@ -116,7 +117,7 @@ public class WebhookServiceImpl implements WebhookService { ...@@ -116,7 +117,7 @@ public class WebhookServiceImpl implements WebhookService {
content += "📣研发工单 " + key + " 状态更新:" + "\n\n"; content += "📣研发工单 " + key + " 状态更新:" + "\n\n";
content += "概要:[" + summary + "](" + issueUrl + ")"+ "\n\n"; content += "概要:[" + summary + "](" + issueUrl + ")"+ "\n\n";
content += "状态变更为:【重新打开】\n\n"; content += "状态变更为:【重新打开】\n\n";
content += "请相关同学再看一下~"; content += "请相关同学再跟进一下🙏";
DingdingUtils.sendToDingding(DingdingUtils.buildMarkdownMsg(title, content, false), webhook); DingdingUtils.sendToDingding(DingdingUtils.buildMarkdownMsg(title, content, false), webhook);
break; break;
case "issue_closed": case "issue_closed":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment