{"id":13391729,"url":"https://github.com/SegmentFault/deploy-robot","last_synced_at":"2025-03-13T16:31:24.952Z","repository":{"id":29382737,"uuid":"32917699","full_name":"segmentfault/deploy-robot","owner":"segmentfault","description":"GitHub 自动部署机器人","archived":false,"fork":false,"pushed_at":"2017-01-09T02:29:42.000Z","size":141,"stargazers_count":349,"open_issues_count":5,"forks_count":66,"subscribers_count":56,"default_branch":"master","last_synced_at":"2024-10-11T00:07:21.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/segmentfault.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-26T09:17:04.000Z","updated_at":"2024-08-24T07:28:18.000Z","dependencies_parsed_at":"2022-07-07T15:43:25.738Z","dependency_job_id":null,"html_url":"https://github.com/segmentfault/deploy-robot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentfault%2Fdeploy-robot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentfault%2Fdeploy-robot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentfault%2Fdeploy-robot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentfault%2Fdeploy-robot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segmentfault","download_url":"https://codeload.github.com/segmentfault/deploy-robot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":220741270,"owners_count":16695694,"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":[],"created_at":"2024-07-30T15:01:08.062Z","updated_at":"2024-10-25T04:30:50.486Z","avatar_url":"https://github.com/segmentfault.png","language":"CoffeeScript","funding_links":[],"categories":["CoffeeScript"],"sub_categories":[],"readme":"\n自动部署机器人\n=============\n\n将你从繁冗的部署工作中解放出来，让你的部署流程更加自动化\n\n特点\n----\n\n- 与 GitHub 深度整合，利用 GitHub API 读取相关部署指令，并及时反馈部署情况\n- 与人工部署不同的是，自动部署不会疲劳，也不会喊累，你永远可以不停地折腾它\n\n使用方法\n--------\n\n执行以下命令安装\n\n```\nnpm install -g deploy-robot\n```\n\n使用以下命令启动脚本\n\n```\ndeploy-robot -c config.json\n```\n\nconfig.json 文件\n--------------\n\n参考目录下的 config.json.sample 文件\n\n```javascript\n{\n    \"username\": \"\",     // 用户名\n    \"password\": \"\",     // token，去 https://github.com/settings/applications 的 \"Personal access tokens\" 选项卡点击 \"Generate new token\"，将获取的字符串填入这里\n\n    \"repos\": [          // 需要监听地 repo 列表\n        {\n            \"user\": \"xxx\",      // repo 所属用户名\n            \"name\": \"xxx\",      // repo 名\n            \"labels\": \"xxx\",    // 指定 issue 的 label\n            \"command\": \"xxx\",   // 上线脚本的命令\n            \"confirm\": null     // 上线是否需要某人的确认, 默认为空\n        }\n    ]\n}\n```\n\n提交上线请求\n-----------\n\n见下图\n\n![deploy](http://joyqi.qiniudn.com/deploy.gif)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSegmentFault%2Fdeploy-robot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSegmentFault%2Fdeploy-robot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSegmentFault%2Fdeploy-robot/lists"}