Ghooks
github hooks receiver written by golang
Install / Use
/learn @Konboi/GhooksREADME
ghooks
ghooks is github hooks receiver. inspired by GitHub::Hooks::Receiver, octoks
Install
go get github.com/Konboi/ghooks
Usage
// sample.go
package main
import (
"fmt"
"log"
"github.com/Konboi/ghooks"
)
func main() {
port := 8080
hooks := ghooks.NewServer(port)
hooks.On("push", pushHandler)
hooks.On("pull_request", pullRequestHandler)
hooks.Run()
}
func pushHandler(payload interface{}) {
fmt.Println("puuuuush")
}
func pullRequestHandler(payload interface{}) {
fmt.Println("pull_request")
}
go run sample.go
curl -H "X-GitHub-Event: push" -d '{"hoge":"fuga"}' http://localhost:8080
> puuuuush
Related Skills
apple-reminders
349.2kManage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
gh-issues
349.2kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
oracle
349.2kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
