feat: 1
This commit is contained in:
20
.drone.yml
20
.drone.yml
@@ -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} 
|
"picurl": "${DRONE_COMMIT_AUTHOR_AVATAR}"
|
||||||
>**提交信息**: {{ build.message }}
|
}
|
||||||
"
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user