Hookserve
HookServe is a small golang utility for receiving github webhooks.
Install / Use
/learn @phayes/HookserveREADME
HookServe
http://godoc.org/github.com/phayes/hookserve/hookserve
HookServe is a small golang utility for receiving github webhooks. It's easy to use, flexible, and provides strong security though GitHub's HMAC webhook verification scheme.
server := hookserve.NewServer()
server.Port = 8888
server.Secret = "supersecretcode"
server.GoListenAndServe()
// Everytime the server receives a webhook event, print the results
for event := range server.Events {
fmt.Println(event.Owner + " " + event.Repo + " " + event.Branch + " " + event.Commit)
}
###Command Line Utility
It also comes with a command-line utility that lets you pass webhook push events to other commands.
$ hookserve --port=8888 logger -t PushEvent #log github webhook push event to the system log (/var/log/message) via the logger command
#####Command Line Utility Downloads
- Linux: https://phayes.github.io/bin/current/hookserve/linux/hookserve.gz
- Mac: https://phayes.github.io/bin/current/hookserve/mac/hookserve.gz
#####Building Command Line Utility From Source
sudo apt-get install golang # Download go. Alternativly build from source: https://golang.org/doc/install/source
mkdir ~/.gopath && export GOPATH=~/.gopath # Replace with desired GOPATH
export PATH=$PATH:$GOPATH/bin # For convenience, add go's bin dir to your PATH
go get github.com/phayes/hookserve/cmd/hookserve
###Settings up GitHub Webhooks
Setting up webhooks on github is easy. Navigate to github.com/<name>/<repo>/settings/hooks and create a new webhook. Setting up your webhook should look something like this:

Related Skills
node-connect
348.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
