Coder Social home page Coder Social logo

gitlab-robot-workwechat's Introduction

gitLab-robort-workwechat

通过云函数创建一个企业微信机器人

  1. git clone https://github.com/ydCao/gitLab-robot-workwechat.git

  2. 企业微信拉个群,添加一个机器人,你会得到一些机器人的信息。见图,保留这个key!

image

  1. 注册并登陆腾讯云管理后台,新建一个云函数,可以先选个Node的Helloworld模板

  2. 将代码中的cloudGitLab目录上传,如图

  3. 点击保存(保存后测试一下)

  4. 选择触发方式,添加新的触发方式,类型选择API网关,保存后得到url

  1. ok!可以填到GitLab的webhook里了,类型选择Send me everything,也可以自定义,url填上上面的url,别忘了要在后面加上?id={你创建的微信机器人id}作为参数

  2. image
  3. github和gitlab实现方式有些区别。请点击这里本项目在此基础上实现,再次表示感谢。

gitlab-robot-workwechat's People

Contributors

ydcao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gitlab-robot-workwechat's Issues

nodejs8.9 helloword模板 测试报错

Cannot read property 'x-gitlab-event' of undefined
TypeError: Cannot read property 'x-gitlab-event' of undefined
at EventHandler.exports.main_handler [as realHandler] (/var/user/index.js:79:35)
at EventHandler.handle (/var/runtime/node8/bootstrap.js:427:28)
at invoke (/var/runtime/node8/bootstrap.js:225:22)
at Timeout.setTimeout [as _onTimeout] (/var/runtime/node8/bootstrap.js:150:9)
at ontimeout (timers.js:475:11)
at tryOnTimeout (timers.js:310:5)
at Timer.listOnTimeout (timers.js:270:5)

麻烦大佬,这是啥问题??

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.