Commit e929afb7 authored by 黎博's avatar 黎博

优化收到BUG时放入BUG池子的逻辑

parent 36976c95
...@@ -45,16 +45,19 @@ public class DingRobotServiceImpl extends ServiceImpl<DingRobotMapper, DingRobot ...@@ -45,16 +45,19 @@ public class DingRobotServiceImpl extends ServiceImpl<DingRobotMapper, DingRobot
break; break;
} }
} }
// 首次提交的BUG放入bug池子 // 只有创建了dingRobot的项目的BUG才会被放到BUG池子里
JiraBugPool jiraBugPool = new JiraBugPool(); if (robotUrl != null) {
jiraBugPool.setKey(key); // 首次提交的BUG放入bug池子
jiraBugPool.setSummary(summary); JiraBugPool jiraBugPool = new JiraBugPool();
jiraBugPool.setPriority(priority); jiraBugPool.setKey(key);
jiraBugPool.setReporter(creator); jiraBugPool.setSummary(summary);
jiraBugPool.setAssignee(assignee); jiraBugPool.setPriority(priority);
jiraBugPool.setUrl("http://jira2.quantgroup.cn/browse/" + key); jiraBugPool.setReporter(creator);
jiraBugPool.setDingUrl(robotUrl); jiraBugPool.setAssignee(assignee);
jiraBugPoolService.save(jiraBugPool); jiraBugPool.setUrl("http://jira2.quantgroup.cn/browse/" + key);
jiraBugPool.setDingUrl(robotUrl);
jiraBugPoolService.save(jiraBugPool);
}
if (robotUrl != null) { if (robotUrl != null) {
String markdownMsg = DingdingUtils.buildBugCommitMarkdownMsg(key, summary, creator, assignee, priority, module); String markdownMsg = DingdingUtils.buildBugCommitMarkdownMsg(key, summary, creator, assignee, priority, module);
return DingdingUtils.sendToDingding(markdownMsg, robotUrl); return DingdingUtils.sendToDingding(markdownMsg, robotUrl);
......
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