Code Monkey home page Code Monkey logo

gitlab-webhook-robot's Introduction

Java版 Gitlab 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.