{"action":"created","comment":{"url":"https://api.github.com/repos/cybozu-go/neco/pulls/comments/231019910","pull_request_review_id":171889070,"id":231019910,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTAxOTkxMA==","diff_hunk":"@@ -2,15 +2,76 @@ package main\n \n import (\n \t\"flag\"\n+\t\"os\"\n+\t\"time\"\n \n+\t\"github.com/coreos/etcd/clientv3/concurrency\"\n+\t\"github.com/cybozu-go/etcdutil\"\n+\t\"github.com/cybozu-go/log\"\n+\t\"github.com/cybozu-go/neco\"\n+\t\"github.com/cybozu-go/neco/storage\"\n+\t\"github.com/cybozu-go/neco/updater\"\n \t\"github.com/cybozu-go/well\"\n+\tyaml \"gopkg.in/yaml.v2\"\n )\n \n var (\n-\tflgConfig = flag.String(\"config\", \"/etc/neco/neco-updater.yml\", \"Configuration file path.\")\n+\tflgConfig     = flag.String(\"config\", \"/etc/neco/config.yml\", \"Configuration file path.\")","path":"pkg/neco-updater/main.go","position":19,"original_position":19,"commit_id":"c91f0d029e9d5525851107e638c10c7504eba4f9","original_commit_id":"c91f0d029e9d5525851107e638c10c7504eba4f9","user":{"login":"ymmt2005","id":1461515,"node_id":"MDQ6VXNlcjE0NjE1MTU=","avatar_url":"https://avatars3.githubusercontent.com/u/1461515?v=4","gravatar_id":"","url":"https://api.github.com/users/ymmt2005","html_url":"https://github.com/ymmt2005","followers_url":"https://api.github.com/users/ymmt2005/followers","following_url":"https://api.github.com/users/ymmt2005/following{/other_user}","gists_url":"https://api.github.com/users/ymmt2005/gists{/gist_id}","starred_url":"https://api.github.com/users/ymmt2005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymmt2005/subscriptions","organizations_url":"https://api.github.com/users/ymmt2005/orgs","repos_url":"https://api.github.com/users/ymmt2005/repos","events_url":"https://api.github.com/users/ymmt2005/events{/privacy}","received_events_url":"https://api.github.com/users/ymmt2005/received_events","type":"User","site_admin":false},"body":"消す","created_at":"2018-11-06T07:33:06Z","updated_at":"2018-11-06T07:33:06Z","html_url":"https://github.com/cybozu-go/neco/pull/8#discussion_r231019910","pull_request_url":"https://api.github.com/repos/cybozu-go/neco/pulls/8","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/cybozu-go/neco/pulls/comments/231019910"},"html":{"href":"https://github.com/cybozu-go/neco/pull/8#discussion_r231019910"},"pull_request":{"href":"https://api.github.com/repos/cybozu-go/neco/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/cybozu-go/neco/pulls/8","id":227809329,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3ODA5MzI5","html_url":"https://github.com/cybozu-go/neco/pull/8","diff_url":"https://github.com/cybozu-go/neco/pull/8.diff","patch_url":"https://github.com/cybozu-go/neco/pull/8.patch","issue_url":"https://api.github.com/repos/cybozu-go/neco/issues/8","number":8,"state":"open","locked":false,"title":"neco-updator implementation","user":{"login":"ueokande","id":534166,"node_id":"MDQ6VXNlcjUzNDE2Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/534166?v=4","gravatar_id":"","url":"https://api.github.com/users/ueokande","html_url":"https://github.com/ueokande","followers_url":"https://api.github.com/users/ueokande/followers","following_url":"https://api.github.com/users/ueokande/following{/other_user}","gists_url":"https://api.github.com/users/ueokande/gists{/gist_id}","starred_url":"https://api.github.com/users/ueokande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ueokande/subscriptions","organizations_url":"https://api.github.com/users/ueokande/orgs","repos_url":"https://api.github.com/users/ueokande/repos","events_url":"https://api.github.com/users/ueokande/events{/privacy}","received_events_url":"https://api.github.com/users/ueokande/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-02T01:50:31Z","updated_at":"2018-11-06T07:33:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46915be725a213dea49b8bf96f186b91e44badc5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cybozu-go/neco/pulls/8/commits","review_comments_url":"https://api.github.com/repos/cybozu-go/neco/pulls/8/comments","review_comment_url":"https://api.github.com/repos/cybozu-go/neco/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cybozu-go/neco/issues/8/comments","statuses_url":"https://api.github.com/repos/cybozu-go/neco/statuses/c91f0d029e9d5525851107e638c10c7504eba4f9","head":{"label":"cybozu-go:neco-updater","ref":"neco-updater","sha":"c91f0d029e9d5525851107e638c10c7504eba4f9","user":{"login":"cybozu-go","id":17453711,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NDUzNzEx","avatar_url":"https://avatars1.githubusercontent.com/u/17453711?v=4","gravatar_id":"","url":"https://api.github.com/users/cybozu-go","html_url":"https://github.com/cybozu-go","followers_url":"https://api.github.com/users/cybozu-go/followers","following_url":"https://api.github.com/users/cybozu-go/following{/other_user}","gists_url":"https://api.github.com/users/cybozu-go/gists{/gist_id}","starred_url":"https://api.github.com/users/cybozu-go/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybozu-go/subscriptions","organizations_url":"https://api.github.com/users/cybozu-go/orgs","repos_url":"https://api.github.com/users/cybozu-go/repos","events_url":"https://api.github.com/users/cybozu-go/events{/privacy}","received_events_url":"https://api.github.com/users/cybozu-go/received_events","type":"Organization","site_admin":false},"repo":{"id":154782072,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ3ODIwNzI=","name":"neco","full_name":"cybozu-go/neco","private":false,"owner":{"login":"cybozu-go","id":17453711,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NDUzNzEx","avatar_url":"https://avatars1.githubusercontent.com/u/17453711?v=4","gravatar_id":"","url":"https://api.github.com/users/cybozu-go","html_url":"https://github.com/cybozu-go","followers_url":"https://api.github.com/users/cybozu-go/followers","following_url":"https://api.github.com/users/cybozu-go/following{/other_user}","gists_url":"https://api.github.com/users/cybozu-go/gists{/gist_id}","starred_url":"https://api.github.com/users/cybozu-go/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybozu-go/subscriptions","organizations_url":"https://api.github.com/users/cybozu-go/orgs","repos_url":"https://api.github.com/users/cybozu-go/repos","events_url":"https://api.github.com/users/cybozu-go/events{/privacy}","received_events_url":"https://api.github.com/users/cybozu-go/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cybozu-go/neco","description":"Data center construction tools","fork":false,"url":"https://api.github.com/repos/cybozu-go/neco","forks_url":"https://api.github.com/repos/cybozu-go/neco/forks","keys_url":"https://api.github.com/repos/cybozu-go/neco/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cybozu-go/neco/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cybozu-go/neco/teams","hooks_url":"https://api.github.com/repos/cybozu-go/neco/hooks","issue_events_url":"https://api.github.com/repos/cybozu-go/neco/issues/events{/number}","events_url":"https://api.github.com/repos/cybozu-go/neco/events","assignees_url":"https://api.github.com/repos/cybozu-go/neco/assignees{/user}","branches_url":"https://api.github.com/repos/cybozu-go/neco/branches{/branch}","tags_url":"https://api.github.com/repos/cybozu-go/neco/tags","blobs_url":"https://api.github.com/repos/cybozu-go/neco/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cybozu-go/neco/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cybozu-go/neco/git/refs{/sha}","trees_url":"https://api.github.com/repos/cybozu-go/neco/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cybozu-go/neco/statuses/{sha}","languages_url":"https://api.github.com/repos/cybozu-go/neco/languages","stargazers_url":"https://api.github.com/repos/cybozu-go/neco/stargazers","contributors_url":"https://api.github.com/repos/cybozu-go/neco/contributors","subscribers_url":"https://api.github.com/repos/cybozu-go/neco/subscribers","subscription_url":"https://api.github.com/repos/cybozu-go/neco/subscription","commits_url":"https://api.github.com/repos/cybozu-go/neco/commits{/sha}","git_commits_url":"https://api.github.com/repos/cybozu-go/neco/git/commits{/sha}","comments_url":"https://api.github.com/repos/cybozu-go/neco/comments{/number}","issue_comment_url":"https://api.github.com/repos/cybozu-go/neco/issues/comments{/number}","contents_url":"https://api.github.com/repos/cybozu-go/neco/contents/{+path}","compare_url":"https://api.github.com/repos/cybozu-go/neco/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cybozu-go/neco/merges","archive_url":"https://api.github.com/repos/cybozu-go/neco/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cybozu-go/neco/downloads","issues_url":"https://api.github.com/repos/cybozu-go/neco/issues{/number}","pulls_url":"https://api.github.com/repos/cybozu-go/neco/pulls{/number}","milestones_url":"https://api.github.com/repos/cybozu-go/neco/milestones{/number}","notifications_url":"https://api.github.com/repos/cybozu-go/neco/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cybozu-go/neco/labels{/name}","releases_url":"https://api.github.com/repos/cybozu-go/neco/releases{/id}","deployments_url":"https://api.github.com/repos/cybozu-go/neco/deployments","created_at":"2018-10-26T05:31:08Z","updated_at":"2018-11-05T02:33:48Z","pushed_at":"2018-11-06T07:28:25Z","git_url":"git://github.com/cybozu-go/neco.git","ssh_url":"git@github.com:cybozu-go/neco.git","clone_url":"https://github.com/cybozu-go/neco.git","svn_url":"https://github.com/cybozu-go/neco","homepage":null,"size":4592,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"cybozu-go:master","ref":"master","sha":"3d99b44ab427bfee485b92ba762014551de813e8","user":{"login":"cybozu-go","id":17453711,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NDUzNzEx","avatar_url":"https://avatars1.githubusercontent.com/u/17453711?v=4","gravatar_id":"","url":"https://api.github.com/users/cybozu-go","html_url":"https://github.com/cybozu-go","followers_url":"https://api.github.com/users/cybozu-go/followers","following_url":"https://api.github.com/users/cybozu-go/following{/other_user}","gists_url":"https://api.github.com/users/cybozu-go/gists{/gist_id}","starred_url":"https://api.github.com/users/cybozu-go/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybozu-go/subscriptions","organizations_url":"https://api.github.com/users/cybozu-go/orgs","repos_url":"https://api.github.com/users/cybozu-go/repos","events_url":"https://api.github.com/users/cybozu-go/events{/privacy}","received_events_url":"https://api.github.com/users/cybozu-go/received_events","type":"Organization","site_admin":false},"repo":{"id":154782072,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ3ODIwNzI=","name":"neco","full_name":"cybozu-go/neco","private":false,"owner":{"login":"cybozu-go","id":17453711,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NDUzNzEx","avatar_url":"https://avatars1.githubusercontent.com/u/17453711?v=4","gravatar_id":"","url":"https://api.github.com/users/cybozu-go","html_url":"https://github.com/cybozu-go","followers_url":"https://api.github.com/users/cybozu-go/followers","following_url":"https://api.github.com/users/cybozu-go/following{/other_user}","gists_url":"https://api.github.com/users/cybozu-go/gists{/gist_id}","starred_url":"https://api.github.com/users/cybozu-go/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybozu-go/subscriptions","organizations_url":"https://api.github.com/users/cybozu-go/orgs","repos_url":"https://api.github.com/users/cybozu-go/repos","events_url":"https://api.github.com/users/cybozu-go/events{/privacy}","received_events_url":"https://api.github.com/users/cybozu-go/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cybozu-go/neco","description":"Data center construction tools","fork":false,"url":"https://api.github.com/repos/cybozu-go/neco","forks_url":"https://api.github.com/repos/cybozu-go/neco/forks","keys_url":"https://api.github.com/repos/cybozu-go/neco/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cybozu-go/neco/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cybozu-go/neco/teams","hooks_url":"https://api.github.com/repos/cybozu-go/neco/hooks","issue_events_url":"https://api.github.com/repos/cybozu-go/neco/issues/events{/number}","events_url":"https://api.github.com/repos/cybozu-go/neco/events","assignees_url":"https://api.github.com/repos/cybozu-go/neco/assignees{/user}","branches_url":"https://api.github.com/repos/cybozu-go/neco/branches{/branch}","tags_url":"https://api.github.com/repos/cybozu-go/neco/tags","blobs_url":"https://api.github.com/repos/cybozu-go/neco/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cybozu-go/neco/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cybozu-go/neco/git/refs{/sha}","trees_url":"https://api.github.com/repos/cybozu-go/neco/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cybozu-go/neco/statuses/{sha}","languages_url":"https://api.github.com/repos/cybozu-go/neco/languages","stargazers_url":"https://api.github.com/repos/cybozu-go/neco/stargazers","contributors_url":"https://api.github.com/repos/cybozu-go/neco/contributors","subscribers_url":"https://api.github.com/repos/cybozu-go/neco/subscribers","subscription_url":"https://api.github.com/repos/cybozu-go/neco/subscription","commits_url":"https://api.github.com/repos/cybozu-go/neco/commits{/sha}","git_commits_url":"https://api.github.com/repos/cybozu-go/neco/git/commits{/sha}","comments_url":"https://api.github.com/repos/cybozu-go/neco/comments{/number}","issue_comment_url":"https://api.github.com/repos/cybozu-go/neco/issues/comments{/number}","contents_url":"https://api.github.com/repos/cybozu-go/neco/contents/{+path}","compare_url":"https://api.github.com/repos/cybozu-go/neco/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cybozu-go/neco/merges","archive_url":"https://api.github.com/repos/cybozu-go/neco/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cybozu-go/neco/downloads","issues_url":"https://api.github.com/repos/cybozu-go/neco/issues{/number}","pulls_url":"https://api.github.com/repos/cybozu-go/neco/pulls{/number}","milestones_url":"https://api.github.com/repos/cybozu-go/neco/milestones{/number}","notifications_url":"https://api.github.com/repos/cybozu-go/neco/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cybozu-go/neco/labels{/name}","releases_url":"https://api.github.com/repos/cybozu-go/neco/releases{/id}","deployments_url":"https://api.github.com/repos/cybozu-go/neco/deployments","created_at":"2018-10-26T05:31:08Z","updated_at":"2018-11-05T02:33:48Z","pushed_at":"2018-11-06T07:28:25Z","git_url":"git://github.com/cybozu-go/neco.git","ssh_url":"git@github.com:cybozu-go/neco.git","clone_url":"https://github.com/cybozu-go/neco.git","svn_url":"https://github.com/cybozu-go/neco","homepage":null,"size":4592,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cybozu-go/neco/pulls/8"},"html":{"href":"https://github.com/cybozu-go/neco/pull/8"},"issue":{"href":"https://api.github.com/repos/cybozu-go/neco/issues/8"},"comments":{"href":"https://api.github.com/repos/cybozu-go/neco/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/cybozu-go/neco/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/cybozu-go/neco/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cybozu-go/neco/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/cybozu-go/neco/statuses/c91f0d029e9d5525851107e638c10c7504eba4f9"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ymmt2005"}}