Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
holmes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
holmes
Commits
50365eb7
Commit
50365eb7
authored
Feb 14, 2022
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e4ffc1fe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
WebhookServiceImpl.java
...cn/qg/holmes/service/quality/impl/WebhookServiceImpl.java
+3
-3
DingdingUtils.java
src/main/java/cn/qg/holmes/utils/DingdingUtils.java
+1
-1
No files found.
src/main/java/cn/qg/holmes/service/quality/impl/WebhookServiceImpl.java
View file @
50365eb7
...
...
@@ -107,8 +107,8 @@ public class WebhookServiceImpl implements WebhookService {
content
+=
"📣研发工单 "
+
key
+
" 状态更新:"
+
"\n\n"
;
content
+=
"概要:["
+
summary
+
"]("
+
issueUrl
+
")"
+
"\n\n"
;
content
+=
"状态变更为:【已解决】\n\n"
;
//
content += "状态变更为:【已解决】, 解决结果为:【" + JsonPath.read(jiraData, "$.changelog.items[0].toString") + "】\n\n";
content
+=
"请相关
客服
同学跟进验收~"
;
//
content += "状态变更为:【已解决】, 解决结果为:【" + JsonPath.read(jiraData, "$.changelog.items[0].toString") + "】\n\n";
content
+=
"请相关同学跟进验收~"
;
DingdingUtils
.
sendToDingding
(
DingdingUtils
.
buildMarkdownMsg
(
title
,
content
,
false
),
webhook
);
break
;
case
"issue_reopened"
:
...
...
@@ -116,7 +116,7 @@ public class WebhookServiceImpl implements WebhookService {
content
+=
"📣研发工单 "
+
key
+
" 状态更新:"
+
"\n\n"
;
content
+=
"概要:["
+
summary
+
"]("
+
issueUrl
+
")"
+
"\n\n"
;
content
+=
"状态变更为:【重新打开】\n\n"
;
content
+=
"请相关
开发
同学再看一下~"
;
content
+=
"请相关同学再看一下~"
;
DingdingUtils
.
sendToDingding
(
DingdingUtils
.
buildMarkdownMsg
(
title
,
content
,
false
),
webhook
);
break
;
case
"issue_closed"
:
...
...
src/main/java/cn/qg/holmes/utils/DingdingUtils.java
View file @
50365eb7
...
...
@@ -275,7 +275,7 @@ public class DingdingUtils {
int
duration
=
calculateBugFixTime
(
startDate
,
curDate
);
content
+=
"- 持续时间:"
+
duration
+
"小时\n\n"
;
}
content
+=
"**截止当前,共有"
+
String
.
valueOf
(
count
)
+
"个BUG未修复,为了不影响测试进度,请对应
开发同学
尽快跟进解决一下~**"
;
content
+=
"**截止当前,共有"
+
String
.
valueOf
(
count
)
+
"个BUG未修复,为了不影响测试进度,请对应
经办人
尽快跟进解决一下~**"
;
return
buildMarkdownMsg
(
title
,
content
,
true
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment