支持GitHub、Gitea、Gogs
复制
data目录中的config.example.json文件重命名为config.json并修改里面的值
{
"这里是仓库full_name的值": {
"logfile": "test-gitea-webhook.log",
"secret": "在Webhooks中设定的secret",
"commands": [
"data/update_repo.sh"
]
}
}# -h为地址(默认0.0.0.0),-p为端口(默认8000)
./webhook-go -h 127.0.0.1 -p 8000