Skip to content

bajins/webhook-go

Repository files navigation

webhook-go

支持GitHub、Gitea、Gogs

Configuration

URL:http://127.0.0.1:8000/webHooks

复制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