Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bajins/webhook-go
支持GitHub、Gitea、Gogs
https://github.com/bajins/webhook-go
git gitea-webhooks github-gitea-gogs github-webhooks gitlab go gogs-webhooks golang webhook webhook-events webhooks
Last synced: about 1 month ago
JSON representation
支持GitHub、Gitea、Gogs
- Host: GitHub
- URL: https://github.com/bajins/webhook-go
- Owner: bajins
- Created: 2019-11-01T09:22:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T00:32:33.000Z (10 months ago)
- Last Synced: 2024-06-20T08:03:54.696Z (6 months ago)
- Topics: git, gitea-webhooks, github-gitea-gogs, github-webhooks, gitlab, go, gogs-webhooks, golang, webhook, webhook-events, webhooks
- Language: Go
- Homepage:
- Size: 55.7 KB
- Stars: 9
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webhook-go
支持GitHub、Gitea、Gogs
## Configuration
> URL:http://127.0.0.1:8000/webHooks
> 复制`data`目录中的`config.example.json`文件重命名为`config.json`并修改里面的值
```json
{
"这里是仓库full_name的值": {
"logfile": "test-gitea-webhook.log",
"secret": "在Webhooks中设定的secret",
"commands": [
"data/update_repo.sh"
]
}
}
```## 运行
```bash
# -h为地址(默认0.0.0.0),-p为端口(默认8000)
./webhook-go -h 127.0.0.1 -p 8000
```