https://github.com/junbaor/platelet
Gitlab Webhook 通知到企业微信
https://github.com/junbaor/platelet
Last synced: 4 months ago
JSON representation
Gitlab Webhook 通知到企业微信
- Host: GitHub
- URL: https://github.com/junbaor/platelet
- Owner: junbaor
- Created: 2019-07-03T07:54:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T06:26:58.000Z (about 3 years ago)
- Last Synced: 2023-05-23T07:27:31.538Z (about 3 years ago)
- Language: Java
- Size: 57.6 KB
- Stars: 3
- Watchers: 0
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Gitlab Webhook 推送到企业微信 [](https://travis-ci.org/junbaor/platelet)
### 部署
#### java 方式
```
mvn clean package -Dmaven.test.skip=true
java -jar target/app.jar
```
#### docker 方式
```
docker run -d -p 8081:8081 --name=platelet junbaor/platelet:latest
```
### 使用
1、申请企业微信机器人获取 Webhook 地址.
例如 : `https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=92dc7b26-1234-4568-5678-99ebccf461b0`
2、记录 `key` 参数.
例如 : `92dc7b26-1234-4568-5678-99ebccf461b0`
3、打开 `Gitlab` 项目主页, 点击 `settings - integrations`
4、`URL` 处输入 `http://机器IP:8081/webhook/key参数`.
例如 : `http://10.200.13.33:8081/webhook/92dc7b26-1234-4568-5678-99ebccf461b0`
5、勾选自己关心的 `Trigger`
6、点击 `Add webhook`