1 Star 6 Fork 10

Ealen / gitlab-webhook-dingrobot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Java版 Gitlab Webhook + 机器人通知

本项目已不再维护,全新版本已转移至 https://github.com/EalenXie/webhook

这是一个简单的SpringBoot项目,主要用于接入Gitlab的webhook 通过机器人实现消息通知 支持企业微信机器人/钉钉机器人/飞书机器人

实现效果 :

推送事件(Push Hook):

image.png

议题事件(Issue Hook):

image.png

流水线事件(Pipeline Hook):

image.png

合并请求事件(Merge Request Hook):

image.png

快速开始

1. 配置项目gitlab-webhook-robot的机器人

例如钉钉机器人:

webhook:
  ## webhook的消息发送方式为钉钉机器人
  way: ding
  ding:
    ## 请配置钉钉机器人的access-token
    access-token: 93axxxxahfjahklhjfxxxxx46f655ae0xxxxxxxxxx
    ## 请配置钉钉机器人sign-key
    sign-key: SECcd68c6bxxxxxxxx614xxxc926xxxxxxxxxxe811656bdd0

例如企业微信机器人:

webhook:
  ## webhook的消息发送方式为企业微信机器人
  way: wechat
  wechat:
    ## 请配置企业机器人的key
    key: 1xxxxxxx-xxxx-49ce-xxxx-4cd44xxxxxxx

例如飞书机器人:

webhook:
  ## webhook的消息发送方式为飞书机器人
  way: feishu
  feishu:
    ## 飞书机器人地址
    url: https://open.feishu.cn/open-apis/bot/v2/hook/4xxxxxxx-xxxx-4ef0-xxxx-eexxxxxxxx7
2. 部署启动项目gitlab-webhook-robot
3. 配置Gitlab项目的webhook。包括接口地址,支持的事件

gitlab-webhook-robot的接口为http://ip:port/actuator/gitlab/webhook

  • 目前已实现的机器人

  • 钉钉机器人

  • 企业微信机器人

  • 飞书机器人

  • 目前已实现对以下事件的通知

  • Push Hook

  • Pipeline Hook

  • Merge Request Hook

  • Issue Hook

  • Releases Hook

  • Note Hook

  • Tag Push Hook

  • Job Hook

  • 目前暂未实现的事件

  • Confidential Issue Hook

  • Confidential Note Hook

  • Wiki Page Hook

  • Deployment Hook

  • Feature Flag Hook

MIT License Copyright (c) 2023 EalenXie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Java版 Gitlab Webhook + 钉钉机器人通知 展开 收起
Java 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/ealenxie/gitlab-webhook-dingrobot.git
git@gitee.com:ealenxie/gitlab-webhook-dingrobot.git
ealenxie
gitlab-webhook-dingrobot
gitlab-webhook-dingrobot
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891