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
a193d01e
Commit
a193d01e
authored
Feb 16, 2022
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改新增备注样式
parent
3b95f656
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
WebhookServiceImpl.java
...cn/qg/holmes/service/quality/impl/WebhookServiceImpl.java
+3
-3
No files found.
src/main/java/cn/qg/holmes/service/quality/impl/WebhookServiceImpl.java
View file @
a193d01e
...
...
@@ -109,7 +109,7 @@ public class WebhookServiceImpl implements WebhookService {
content
+=
"概要:["
+
summary
+
"]("
+
issueUrl
+
")"
+
"\n\n"
;
content
+=
"状态变更为:【已解决】\n\n"
;
// content += "状态变更为:【已解决】, 解决结果为:【" + JsonPath.read(jiraData, "$.changelog.items[0].toString") + "】\n\n";
content
+=
"请相关同学跟进验收
🙏
"
;
content
+=
"请相关同学跟进验收
~
"
;
DingdingUtils
.
sendToDingding
(
DingdingUtils
.
buildMarkdownMsg
(
title
,
content
,
false
),
webhook
);
break
;
case
"issue_reopened"
:
...
...
@@ -117,7 +117,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"
:
...
...
@@ -130,7 +130,7 @@ public class WebhookServiceImpl implements WebhookService {
content
+=
"概要:["
+
summary
+
"]("
+
issueUrl
+
")"
+
"\n\n"
;
String
commentBody
=
JsonPath
.
read
(
jiraData
,
"$.comment.body"
);
if
(
commentBody
!=
null
)
{
content
+=
"
> 新增备注:
\n"
;
content
+=
"
新增备注:\n
\n"
;
String
[]
commentBodyList
=
commentBody
.
split
(
"\n"
);
for
(
String
comment:
commentBodyList
)
{
content
+=
"> "
+
comment
+
"\n\n"
;
...
...
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