This commit is contained in:
2025-04-13 14:35:03 +08:00
parent ef15f93a98
commit 4df85be884

View File

@@ -56,16 +56,16 @@ steps:
content_type: application/json content_type: application/json
template: | template: |
{ {
"msgtype": "markdown", "msgtype": "news",
"markdown": { "news": {
"content": "{{#success build.status}}✅{{else}}❌{{/success}}**{{ repo.owner }}/{{ repo.name }}** (Build #{{build.number}})\n "articles": [
>**构建结果**: {{ build.status }} {
>**构建详情**: [点击查看]({{ build.link }}) "title": "{{repo.owner}}/{{repo.name}} 构建通知 ({{build.status}})",
>**代码分支**: {{ build.branch }} "description": "{{#success build.status}}成功{{else}}失败{{/success}} | 分支: {{build.branch}} | 提交: {{build.commit}}",
>**提交标识**: {{ build.commit }} "url": "{{build.link}}",
>**提交发起**: ![头像](${DRONE_COMMIT_AUTHOR_AVATAR}) ${DRONE_COMMIT_AUTHOR} ![头像](${DRONE_COMMIT_AUTHOR_AVATAR}) "picurl": "${DRONE_COMMIT_AUTHOR_AVATAR}"
>**提交信息**: {{ build.message }} }
" ]
} }
} }