From c2f7f259d2bebb971b3cc7c4b4d88e885f7d9574 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Thu, 16 Mar 2023 16:26:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20.devops/=E6=96=B0=E7=9A=84PR=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E9=80=9A=E7=9F=A5.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/新的PR提交通知.yml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .devops/新的PR提交通知.yml diff --git a/.devops/新的PR提交通知.yml b/.devops/新的PR提交通知.yml new file mode 100644 index 00000000000..63915367219 --- /dev/null +++ b/.devops/新的PR提交通知.yml @@ -0,0 +1,37 @@ +version: 2 +name: 新的PR提交通知 +description: "" +global: + concurrent: 1 +trigger: + webhook: gitlink@1.0.0 + event: + - ref: pr + ruleset: + - param-ref: action + operator: EQ + value: "'opened'" + ruleset-operator: AND +workflow: + - ref: start + name: 开始 + task: start + - ref: dingtalk_notice_text_0 + name: 钉钉通知-文本 + task: dingtalk_notice_text@1.0.2 + input: + boot_webhook_url: ((dingdingtalk.token_url)) + secret: ((dingdingtalk.serect)) + msg_text: '"【"+((trigger.user)) + + "】从"+((trigger.source_branch))+"提交PR到"+((trigger.target_branch)) + + ",请您立即确认是否合并。"' + at_user_ids: '"[]"' + at_mobiles: '"[]"' + needs: + - start + - ref: end + name: 结束 + task: end + needs: + - dingtalk_notice_text_0 +