feat: 新增 issue 开启和重新打开时的通知功能

This commit is contained in:
xiao 2025-01-09 10:06:37 +08:00
parent 3306ff3ef3
commit 71eab61a5d

View File

@ -5,6 +5,32 @@ $:
docker: docker:
build: build:
dockerfile: .ide/Dockerfile dockerfile: .ide/Dockerfile
issue.open:
- stages:
- name: issue-notice
image: tencentcom/wecom-message
imports: https://cnb.cool/btpanel/secret/-/blob/main/wework-robots.yml
settings:
robot: $CNB_WARRIOR_ROBOT
msgType: markdown
content: |
> **有人提issue啦**
> **标 题:** $CNB_ISSUE_TITLE
> **发起人:** $CNB_ISSUE_OWNER
> **查看:** [$CNB_EVENT_URL]($CNB_EVENT_URL)
issue.reopen:
- stages:
- name: issue-notice
image: tencentcom/wecom-message
imports: https://cnb.cool/btpanel/secret/-/blob/main/wework-robots.yml
settings:
robot: $CNB_WARRIOR_ROBOT
content: |
> **$CNB_BUILD_USER重新打开了一个issue**
> **标 题:** $CNB_ISSUE_TITLE
> **发起人:** $CNB_ISSUE_OWNER
> **查 看:** [$CNB_EVENT_URL]($CNB_EVENT_URL)
push: push:
- runner: - runner:
tags: cnb:arch:amd64 tags: cnb:arch:amd64