Giter Club home page Giter Club logo

githook's Introduction

Github/Bitbucket/OSC Webhook Tools

基于 Github/Bitbucket/Osc Webhook 做了个小工具。

它能够做什么?简单来说,它就是一个让 Github/Bitbucket repo 在某个分支发生 push 行为的时候,自动触发一段脚本。

用法

sh server.sh start

这样就启动 githook 服务器了。其中各种配置都在config.php文件中

与 Github 关联

在你的 repo 首页(例如 https://github.com/wenjun1055/githook ),点 Settings,再进入 Service Hooks,再进入 WebHook URLs,这里你就可以设置你的 WebHook URL 了,比如

http://example.com:9876/test

配置好后,再确定 webhook 已经启动,你就可以尝试向 repo push 一些修改,看看能不能执行相应的脚本了。

githook's People

Contributors

wenjun1055 avatar

Watchers

Joe Stone avatar

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.