企业微信群消息通知 PRD
Problem to solve
User wants to receive Jihu Gitlab's events (issue, mr, pipeline...) notification in their WeCom group conversation.
Proposal
User Story
As a developer, I want to receive events from JiHu GitLab e.g. issue created, pipeline failure... in my WeCom conversations so that I can receive these updates in time.
Use Cases
- User chooses to add a Bot in the WeCom group and copy the url of Webhook.
- User opens a Jihu GitLab Group (or Project) Settings - Integration - WeCom Notification Service, and configures the service:
- Sends notifications about project events to WeCom group conversations. How do I set up this service?
- Enable integration
-
Active
-
- Trigger (each trigger allows to add multiple Webhook urls; When a text form is filled, a new form will pop up below it):
-
Push -
Issue -
Confidential Issue -
Merge Request -
Note -
Confidential Note -
Tag Push -
Pipeline -
Wiki Page -
Deployment -
Vulnerability -
Alert
-
- Language:
-
简体中文/English
-
- Notify only broken pipelines
- Branches for which notifications are to be sent
- Labels to be notified
- Labels to be notified behavior
- Save the configuration.
Useful Links
Acceptance Criteria
- 配置页面根据当前issue中的Use Case能够配置成功
- 实际使用中根据ChatOps PRD中所有event type消息都能成功发送至企业微信群聊聊天窗口
- 企业微信群聊消息标题支持三种颜色,我们统一使用3种颜色,规定以下事件的标题颜色:
- 绿色(Green)代表完成/成功
- push
- push to removed branch
- tag push
- issue&confidential issue open/close
- MR open
- MR merge
- MR approve
- Note & Confidential Note
- Pipeline pass
- Wiki
- Deployment start
- Deployment succeed
- 红色(Red)代表错误/异常
- MR unapprove
- Pipeline fail
- Deployment fail
- Vulnerability detected
- Alert detected
- 灰色(Grey)代表失效
- MR close
- Pipeline cancel
- Deployment cancel
- 绿色(Green)代表完成/成功
由 ZZJ 编辑于