5 Star 5 Fork 1

Zoker / GiteeAutoUpdate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

GiteeAutoUpdate

推送到 Gitee 自动更新到其它平台的 Webhook 服务端

GAU 1.0.0 - Gitee Auto Update is a bot to do something useful for project on Gitee

Usage: Config your config.json and start GAU with command ./gau -c ./config.json &

Args:
        -c      Specify a config json
        -h      Help and quit
        -v      Show current version and quit

功能特点

  1. 支持同步推送到多个平台
  2. 支持 Webhook IP 白名单过滤

设计流程图

输入图片说明

快速使用(云服务)

  1. 提交 PullRequest 到本仓库的config/syncWhitelist文件,按照格式将自己的仓库以及目标仓库加入
  2. 在对应平台将GiteeAutoUpdate用户加到对应仓库,并赋予写权限(目前仅在 Github 上创建了用户)
  3. 添加http://139.162.89.15:6666/sync(建设中)到 Gitee 仓库的 Push Hook

自行搭建

你可以选择在自己的服务器上搭建一套GiteeAutoUpdate

构建说明

git clone https://gitee.com/kesin/GiteeAutoUpdate.git
cd GiteeAutoUpdate
go build
./gau -c config/config.json

配置说明

{
  "Port": 6666,  // 启动端口
  "GiteePrivateToken": "xxxxxxxxxxx", // Gitee 的私人令牌,用于创建Issue和评论,同步结果
  "IpWhitelist": [
    "127.0.0.1" // 白名单过滤
  ],
  "UpdateWhitelistToken": "xxxxxx", // 更新仓库白名单的 Token
  "SyncUser": { // 要推送的平台的用户
    "github.com": {
      "username": "GiteeAutoUpdate",
      "password": "xxxxxx"
    },
    "gitlab.com": {
      "username": "GiteeAutoUpdate",
      "password": "xxxxxxx"
    }
  }
}

TODO

  1. 将推送结果以 Issue 的形式提交到对应仓库

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

欢迎提交更多其他 Hooks 功能的支持

MIT License Copyright (c) 2020 Zoker Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

推送到 Gitee 自动更新到其它平台的 Webhook 服务端 展开 收起
Go
MIT
取消

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/kesin/GiteeAutoUpdate.git
git@gitee.com:kesin/GiteeAutoUpdate.git
kesin
GiteeAutoUpdate
GiteeAutoUpdate
master

搜索帮助

14c37bed 8189591 565d56ea 8189591