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
73d07d6d
Commit
73d07d6d
authored
Feb 17, 2022
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
线上@具体人更新
parent
fe756eac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
WebhookServiceImpl.java
...cn/qg/holmes/service/quality/impl/WebhookServiceImpl.java
+1
-1
DingdingUtils.java
src/main/java/cn/qg/holmes/utils/DingdingUtils.java
+8
-0
No files found.
src/main/java/cn/qg/holmes/service/quality/impl/WebhookServiceImpl.java
View file @
73d07d6d
...
@@ -112,7 +112,7 @@ public class WebhookServiceImpl implements WebhookService {
...
@@ -112,7 +112,7 @@ public class WebhookServiceImpl implements WebhookService {
// BUG更新的时候发送通知
// BUG更新的时候发送通知
if
(
StringUtils
.
equals
(
webhookEvent
,
"jira:issue_updated"
))
{
if
(
StringUtils
.
equals
(
webhookEvent
,
"jira:issue_updated"
))
{
// 钉钉消息title
// 钉钉消息title
String
title
=
"研发工单更新"
;
String
title
;
String
issueUrl
=
"http://jira2.quantgroup.cn/browse/"
+
key
;
String
issueUrl
=
"http://jira2.quantgroup.cn/browse/"
+
key
;
// 钉钉消息内容
// 钉钉消息内容
String
content
=
""
;
String
content
=
""
;
...
...
src/main/java/cn/qg/holmes/utils/DingdingUtils.java
View file @
73d07d6d
...
@@ -52,6 +52,14 @@ public class DingdingUtils {
...
@@ -52,6 +52,14 @@ public class DingdingUtils {
return
JSON
.
toJSONString
(
markdown
);
return
JSON
.
toJSONString
(
markdown
);
}
}
/**
* 构建@具体人的markdown消息,需要在text里加上@手机号,以及at下的atMobiles列表里添加需要被@的手机号
* @param title 消息标题
* @param content 内容
* @param phoneNo 被@的手机号
* @param atAll 是否@所有人
* @return
*/
public
static
String
buildMarkdownMsgAtSpecifyPhone
(
String
title
,
String
content
,
String
phoneNo
,
boolean
atAll
)
{
public
static
String
buildMarkdownMsgAtSpecifyPhone
(
String
title
,
String
content
,
String
phoneNo
,
boolean
atAll
)
{
Map
<
String
,
Object
>
markdown
=
new
HashMap
<>();
Map
<
String
,
Object
>
markdown
=
new
HashMap
<>();
Map
<
String
,
String
>
contentMap
=
new
HashMap
<>();
Map
<
String
,
String
>
contentMap
=
new
HashMap
<>();
...
...
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