https://github.com/fifsky/drone-wechat-work
drone wechat work robot notify
https://github.com/fifsky/drone-wechat-work
drone robot wework
Last synced: 10 months ago
JSON representation
drone wechat work robot notify
- Host: GitHub
- URL: https://github.com/fifsky/drone-wechat-work
- Owner: fifsky
- License: mit
- Created: 2020-01-03T03:33:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-13T02:57:39.000Z (over 1 year ago)
- Last Synced: 2025-05-04T20:40:55.844Z (about 1 year ago)
- Topics: drone, robot, wework
- Language: Go
- Homepage:
- Size: 6.58 MB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-wechat-work
[](https://github.com/fifsky/drone-wechat-work/actions/workflows/build.yml)
wechat work robot plugin for drone
### Usage
```yaml
- name: notify
image: fifsky/drone-wechat-work
pull: always
settings:
url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=XXX-XXXX-XXX-XXXXX
msgtype: markdown
content: |
{{if eq .Status "success" }}
#### 🎉 ${DRONE_REPO} 构建成功
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK})
> Author: ${DRONE_COMMIT_AUTHOR}
> [点击查看](${DRONE_BUILD_LINK})
{{else}}
#### ❌ ${DRONE_REPO} 构建失败
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK})
> Author: ${DRONE_COMMIT_AUTHOR}
> 请立即修复!!!
> [点击查看](${DRONE_BUILD_LINK})
{{end}}
when:
status:
- failure
- success
```
## Options
| option | type | required | default | description |
| --- | --- | --- | --- | --- |
| url | []string | Yes | none | The full address of webhook: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxx |
| type | string | No | text | message type,support (text,markdown) |
| content | string | Yes | none | Message content, text or markdown or json string |
| touser | string | No | none | At user,Use commas to separate, for example: 13812345678,13898754321 or all |