{"id":21240355,"url":"https://github.com/dongyanghu/sunshine-hook","last_synced_at":"2026-05-08T05:33:03.283Z","repository":{"id":54399861,"uuid":"336230273","full_name":"DongyangHu/sunshine-hook","owner":"DongyangHu","description":"一个WebHook监听程序，接收Git的WebHook事件，触发执行指定脚本","archived":false,"fork":false,"pushed_at":"2021-02-22T11:52:46.000Z","size":85,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T19:35:03.261Z","etag":null,"topics":["git","gitee","github","java","springboot","sunshine-hook","webhook","webhook-server"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DongyangHu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-05T09:53:20.000Z","updated_at":"2023-07-01T11:56:33.000Z","dependencies_parsed_at":"2022-08-13T14:30:59.100Z","dependency_job_id":null,"html_url":"https://github.com/DongyangHu/sunshine-hook","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DongyangHu%2Fsunshine-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DongyangHu%2Fsunshine-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DongyangHu%2Fsunshine-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DongyangHu%2Fsunshine-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DongyangHu","download_url":"https://codeload.github.com/DongyangHu/sunshine-hook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681005,"owners_count":20330155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","gitee","github","java","springboot","sunshine-hook","webhook","webhook-server"],"created_at":"2024-11-21T00:50:52.929Z","updated_at":"2026-05-08T05:32:58.250Z","avatar_url":"https://github.com/DongyangHu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sunshine-Hook\n![java](https://img.shields.io/badge/java-1.8-brightgreen)\n\u0026nbsp;\n![spring-boot](https://img.shields.io/badge/spring--boot-2.3.8.RELEASE-green)\n\n一个WebHook监听程序，接收Git的WebHook事件，触发后执行自定义脚本\n\n|类型|是否支持|备注|\n|:----|:----|:----|\n|GitHub|√||\n|Gitee|√||\n\n## 快速使用\n自行打包或下载[releases](https://github.com/DongyangHu/sunshine-hook/releases)版本\n### 启动\n```shell script\n命令: java -jar ${path}/sunshine-hook-web-${version}.jar [config...]\n示例: java -jar ./sunshine-hook-web-1.0.0-RELEASE.jar\n```\n接口地址: `http://localhost:10000/sunshine-hook/event`\n\n### 配置说明\n可直接修改项目配置文件，也可使用SpringBoot命令行参数配置\n- 格式: `--${key}=${value}`\n- 示例: `java -jar ./sunshine-hook-web-1.0.0-RELEASE.jar --sunshine-hook.config.branch-filter=master`\n\n|配置|描述|默认值|示例|必填|\n|:----|:----|:----|:----|:----|\n|server.port|服务端口|10000|8080|×|\n|sunshine-hook.config.branch-filter|数组,需要监听的分支|master|b1,b2|×|\n|sunshine-hook.config.event-filter|数组,需要监听的事件类型|push|push,commit|×|\n|sunshine-hook.config.script-path|事件触发后执行的脚本路径|-|./trigger.sh|√|\n|sunshine-hook.config.secret-key|WebHook请求签名秘钥|123456|abc123|×|\n|sunshine-hook.config.consume-delay|事件处理频率,单位:s|10|5|×|\n|sunshine-hook.config.max-size|事件缓冲区队列大小|100|50|×|\n\n## LICENSE\n[MIT](https://github.com/DongyangHu/sunshine-hook/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdongyanghu%2Fsunshine-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdongyanghu%2Fsunshine-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdongyanghu%2Fsunshine-hook/lists"}