Issue Notification to Enterprise WeChat Group
About 169 wordsLess than 1 minute
Add Group Bot
Add a bot in your Enterprise WeChat group and copy the obtained Webhook
URL.
Configure Pipeline
Example:
.issue-open: &issue-open
- name: issue-notice
image: tencentcom/wecom-message
settings:
robot: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx
content: |
> **New Issue Created**
> **Title:** $CNB_ISSUE_TITLE
> **Creator:** $CNB_ISSUE_OWNER
> [View Details]($CNB_EVENT_URL)
.issue-reopen: &issue-reopen
- name: issue-notice
image: tencentcom/wecom-message
settings:
robot: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx
content: |
> **$CNB_BUILD_USER reopened an issue**
> **Title:** $CNB_ISSUE_TITLE
> **Creator:** $CNB_ISSUE_OWNER
> [View Details]($CNB_EVENT_URL)
.issue-close: &issue-close
- name: issue-close
image: tencentcom/wecom-message
settings:
robot: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx
content: |
> **$CNB_BUILD_USER closed an issue**
> **Title:** $CNB_ISSUE_TITLE
> **Creator:** $CNB_ISSUE_OWNER
> [View Details]($CNB_EVENT_URL)
$:
issue.close:
- stages:
- *issue-close
issue.reopen:
- stages:
- *issue-reopen
issue.open:
- stages:
- *issue-open
Fill in the previously copied Webhook
URL for the robot
parameter.
The pipeline trigger is the user who created, closed, or reopened the issue
.
The message format can be customized. Available variables refer to Environment Variables.