{"action":"created","comment":{"url":"https://api.github.com/repos/supergiant/supergiant/pulls/comments/202484563","pull_request_review_id":137204271,"id":202484563,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjQ4NDU2Mw==","diff_hunk":"@@ -0,0 +1,47 @@\n+package main\n+\n+import (\n+\t\"flag\"\n+\n+\t\"os\"\n+\t\"os/signal\"\n+\t\"syscall\"\n+\n+\t\"github.com/sirupsen/logrus\"\n+\t\"github.com/supergiant/supergiant/pkg/controlplane\"\n+)\n+\n+var (\n+\tport         = flag.Int(\"port\", 8080, \"tcp port to listen for incoming requests\")","path":"cmd/controlplane/main.go","position":15,"original_position":15,"commit_id":"b1ad19be719d36ff36ff8233f158b762e9c1bdb2","original_commit_id":"b1ad19be719d36ff36ff8233f158b762e9c1bdb2","user":{"login":"stgleb","id":5112367,"node_id":"MDQ6VXNlcjUxMTIzNjc=","avatar_url":"https://avatars1.githubusercontent.com/u/5112367?v=4","gravatar_id":"","url":"https://api.github.com/users/stgleb","html_url":"https://github.com/stgleb","followers_url":"https://api.github.com/users/stgleb/followers","following_url":"https://api.github.com/users/stgleb/following{/other_user}","gists_url":"https://api.github.com/users/stgleb/gists{/gist_id}","starred_url":"https://api.github.com/users/stgleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgleb/subscriptions","organizations_url":"https://api.github.com/users/stgleb/orgs","repos_url":"https://api.github.com/users/stgleb/repos","events_url":"https://api.github.com/users/stgleb/events{/privacy}","received_events_url":"https://api.github.com/users/stgleb/received_events","type":"User","site_admin":false},"body":"Using underscores in cmd args is a bit weird, we had better to use camel Case like most go projects or dash as most of unix utilities do.","created_at":"2018-07-13T22:09:05Z","updated_at":"2018-07-13T22:22:22Z","html_url":"https://github.com/supergiant/supergiant/pull/542#discussion_r202484563","pull_request_url":"https://api.github.com/repos/supergiant/supergiant/pulls/542","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/supergiant/supergiant/pulls/comments/202484563"},"html":{"href":"https://github.com/supergiant/supergiant/pull/542#discussion_r202484563"},"pull_request":{"href":"https://api.github.com/repos/supergiant/supergiant/pulls/542"}}},"pull_request":{"url":"https://api.github.com/repos/supergiant/supergiant/pulls/542","id":197741032,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3NzQxMDMy","html_url":"https://github.com/supergiant/supergiant/pull/542","diff_url":"https://github.com/supergiant/supergiant/pull/542.diff","patch_url":"https://github.com/supergiant/supergiant/pull/542.patch","issue_url":"https://api.github.com/repos/supergiant/supergiant/issues/542","number":542,"state":"open","locked":false,"title":"CMD for SG 2.0 + routes + fixes ","user":{"login":"egopher","id":1738270,"node_id":"MDQ6VXNlcjE3MzgyNzA=","avatar_url":"https://avatars3.githubusercontent.com/u/1738270?v=4","gravatar_id":"","url":"https://api.github.com/users/egopher","html_url":"https://github.com/egopher","followers_url":"https://api.github.com/users/egopher/followers","following_url":"https://api.github.com/users/egopher/following{/other_user}","gists_url":"https://api.github.com/users/egopher/gists{/gist_id}","starred_url":"https://api.github.com/users/egopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egopher/subscriptions","organizations_url":"https://api.github.com/users/egopher/orgs","repos_url":"https://api.github.com/users/egopher/repos","events_url":"https://api.github.com/users/egopher/events{/privacy}","received_events_url":"https://api.github.com/users/egopher/received_events","type":"User","site_admin":false},"body":"* Created CMD for supergiant 2.0.\r\n* Added API router.\r\n* Added missing API register funcs\r\n* Added missing constructor funcs for handlers and services\r\n* Small Fixes","created_at":"2018-06-27T13:53:06Z","updated_at":"2018-07-13T22:22:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ae8ef0900c99fb84ec960f81e2efcca52c60b2b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/supergiant/supergiant/pulls/542/commits","review_comments_url":"https://api.github.com/repos/supergiant/supergiant/pulls/542/comments","review_comment_url":"https://api.github.com/repos/supergiant/supergiant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/supergiant/supergiant/issues/542/comments","statuses_url":"https://api.github.com/repos/supergiant/supergiant/statuses/b1ad19be719d36ff36ff8233f158b762e9c1bdb2","head":{"label":"egopher:master","ref":"master","sha":"b1ad19be719d36ff36ff8233f158b762e9c1bdb2","user":{"login":"egopher","id":1738270,"node_id":"MDQ6VXNlcjE3MzgyNzA=","avatar_url":"https://avatars3.githubusercontent.com/u/1738270?v=4","gravatar_id":"","url":"https://api.github.com/users/egopher","html_url":"https://github.com/egopher","followers_url":"https://api.github.com/users/egopher/followers","following_url":"https://api.github.com/users/egopher/following{/other_user}","gists_url":"https://api.github.com/users/egopher/gists{/gist_id}","starred_url":"https://api.github.com/users/egopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egopher/subscriptions","organizations_url":"https://api.github.com/users/egopher/orgs","repos_url":"https://api.github.com/users/egopher/repos","events_url":"https://api.github.com/users/egopher/events{/privacy}","received_events_url":"https://api.github.com/users/egopher/received_events","type":"User","site_admin":false},"repo":{"id":132445600,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI0NDU2MDA=","name":"supergiant","full_name":"egopher/supergiant","owner":{"login":"egopher","id":1738270,"node_id":"MDQ6VXNlcjE3MzgyNzA=","avatar_url":"https://avatars3.githubusercontent.com/u/1738270?v=4","gravatar_id":"","url":"https://api.github.com/users/egopher","html_url":"https://github.com/egopher","followers_url":"https://api.github.com/users/egopher/followers","following_url":"https://api.github.com/users/egopher/following{/other_user}","gists_url":"https://api.github.com/users/egopher/gists{/gist_id}","starred_url":"https://api.github.com/users/egopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egopher/subscriptions","organizations_url":"https://api.github.com/users/egopher/orgs","repos_url":"https://api.github.com/users/egopher/repos","events_url":"https://api.github.com/users/egopher/events{/privacy}","received_events_url":"https://api.github.com/users/egopher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/egopher/supergiant","description":"Automatically scale hardware and easily run stateful applications using Kubernetes.","fork":true,"url":"https://api.github.com/repos/egopher/supergiant","forks_url":"https://api.github.com/repos/egopher/supergiant/forks","keys_url":"https://api.github.com/repos/egopher/supergiant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/egopher/supergiant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/egopher/supergiant/teams","hooks_url":"https://api.github.com/repos/egopher/supergiant/hooks","issue_events_url":"https://api.github.com/repos/egopher/supergiant/issues/events{/number}","events_url":"https://api.github.com/repos/egopher/supergiant/events","assignees_url":"https://api.github.com/repos/egopher/supergiant/assignees{/user}","branches_url":"https://api.github.com/repos/egopher/supergiant/branches{/branch}","tags_url":"https://api.github.com/repos/egopher/supergiant/tags","blobs_url":"https://api.github.com/repos/egopher/supergiant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/egopher/supergiant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/egopher/supergiant/git/refs{/sha}","trees_url":"https://api.github.com/repos/egopher/supergiant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/egopher/supergiant/statuses/{sha}","languages_url":"https://api.github.com/repos/egopher/supergiant/languages","stargazers_url":"https://api.github.com/repos/egopher/supergiant/stargazers","contributors_url":"https://api.github.com/repos/egopher/supergiant/contributors","subscribers_url":"https://api.github.com/repos/egopher/supergiant/subscribers","subscription_url":"https://api.github.com/repos/egopher/supergiant/subscription","commits_url":"https://api.github.com/repos/egopher/supergiant/commits{/sha}","git_commits_url":"https://api.github.com/repos/egopher/supergiant/git/commits{/sha}","comments_url":"https://api.github.com/repos/egopher/supergiant/comments{/number}","issue_comment_url":"https://api.github.com/repos/egopher/supergiant/issues/comments{/number}","contents_url":"https://api.github.com/repos/egopher/supergiant/contents/{+path}","compare_url":"https://api.github.com/repos/egopher/supergiant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/egopher/supergiant/merges","archive_url":"https://api.github.com/repos/egopher/supergiant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/egopher/supergiant/downloads","issues_url":"https://api.github.com/repos/egopher/supergiant/issues{/number}","pulls_url":"https://api.github.com/repos/egopher/supergiant/pulls{/number}","milestones_url":"https://api.github.com/repos/egopher/supergiant/milestones{/number}","notifications_url":"https://api.github.com/repos/egopher/supergiant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/egopher/supergiant/labels{/name}","releases_url":"https://api.github.com/repos/egopher/supergiant/releases{/id}","deployments_url":"https://api.github.com/repos/egopher/supergiant/deployments","created_at":"2018-05-07T10:35:28Z","updated_at":"2018-07-12T20:49:13Z","pushed_at":"2018-07-12T20:49:11Z","git_url":"git://github.com/egopher/supergiant.git","ssh_url":"git@github.com:egopher/supergiant.git","clone_url":"https://github.com/egopher/supergiant.git","svn_url":"https://github.com/egopher/supergiant","homepage":"https://supergiant.io/","size":14731,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"supergiant:master","ref":"master","sha":"faea3678d049585197ec4e0e95d2012d96630fc3","user":{"login":"supergiant","id":17504253,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NTA0MjUz","avatar_url":"https://avatars0.githubusercontent.com/u/17504253?v=4","gravatar_id":"","url":"https://api.github.com/users/supergiant","html_url":"https://github.com/supergiant","followers_url":"https://api.github.com/users/supergiant/followers","following_url":"https://api.github.com/users/supergiant/following{/other_user}","gists_url":"https://api.github.com/users/supergiant/gists{/gist_id}","starred_url":"https://api.github.com/users/supergiant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supergiant/subscriptions","organizations_url":"https://api.github.com/users/supergiant/orgs","repos_url":"https://api.github.com/users/supergiant/repos","events_url":"https://api.github.com/users/supergiant/events{/privacy}","received_events_url":"https://api.github.com/users/supergiant/received_events","type":"Organization","site_admin":false},"repo":{"id":52634092,"node_id":"MDEwOlJlcG9zaXRvcnk1MjYzNDA5Mg==","name":"supergiant","full_name":"supergiant/supergiant","owner":{"login":"supergiant","id":17504253,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NTA0MjUz","avatar_url":"https://avatars0.githubusercontent.com/u/17504253?v=4","gravatar_id":"","url":"https://api.github.com/users/supergiant","html_url":"https://github.com/supergiant","followers_url":"https://api.github.com/users/supergiant/followers","following_url":"https://api.github.com/users/supergiant/following{/other_user}","gists_url":"https://api.github.com/users/supergiant/gists{/gist_id}","starred_url":"https://api.github.com/users/supergiant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supergiant/subscriptions","organizations_url":"https://api.github.com/users/supergiant/orgs","repos_url":"https://api.github.com/users/supergiant/repos","events_url":"https://api.github.com/users/supergiant/events{/privacy}","received_events_url":"https://api.github.com/users/supergiant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/supergiant/supergiant","description":"Automatically scale hardware and easily run stateful applications using Kubernetes.","fork":false,"url":"https://api.github.com/repos/supergiant/supergiant","forks_url":"https://api.github.com/repos/supergiant/supergiant/forks","keys_url":"https://api.github.com/repos/supergiant/supergiant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/supergiant/supergiant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/supergiant/supergiant/teams","hooks_url":"https://api.github.com/repos/supergiant/supergiant/hooks","issue_events_url":"https://api.github.com/repos/supergiant/supergiant/issues/events{/number}","events_url":"https://api.github.com/repos/supergiant/supergiant/events","assignees_url":"https://api.github.com/repos/supergiant/supergiant/assignees{/user}","branches_url":"https://api.github.com/repos/supergiant/supergiant/branches{/branch}","tags_url":"https://api.github.com/repos/supergiant/supergiant/tags","blobs_url":"https://api.github.com/repos/supergiant/supergiant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/supergiant/supergiant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/supergiant/supergiant/git/refs{/sha}","trees_url":"https://api.github.com/repos/supergiant/supergiant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/supergiant/supergiant/statuses/{sha}","languages_url":"https://api.github.com/repos/supergiant/supergiant/languages","stargazers_url":"https://api.github.com/repos/supergiant/supergiant/stargazers","contributors_url":"https://api.github.com/repos/supergiant/supergiant/contributors","subscribers_url":"https://api.github.com/repos/supergiant/supergiant/subscribers","subscription_url":"https://api.github.com/repos/supergiant/supergiant/subscription","commits_url":"https://api.github.com/repos/supergiant/supergiant/commits{/sha}","git_commits_url":"https://api.github.com/repos/supergiant/supergiant/git/commits{/sha}","comments_url":"https://api.github.com/repos/supergiant/supergiant/comments{/number}","issue_comment_url":"https://api.github.com/repos/supergiant/supergiant/issues/comments{/number}","contents_url":"https://api.github.com/repos/supergiant/supergiant/contents/{+path}","compare_url":"https://api.github.com/repos/supergiant/supergiant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/supergiant/supergiant/merges","archive_url":"https://api.github.com/repos/supergiant/supergiant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/supergiant/supergiant/downloads","issues_url":"https://api.github.com/repos/supergiant/supergiant/issues{/number}","pulls_url":"https://api.github.com/repos/supergiant/supergiant/pulls{/number}","milestones_url":"https://api.github.com/repos/supergiant/supergiant/milestones{/number}","notifications_url":"https://api.github.com/repos/supergiant/supergiant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/supergiant/supergiant/labels{/name}","releases_url":"https://api.github.com/repos/supergiant/supergiant/releases{/id}","deployments_url":"https://api.github.com/repos/supergiant/supergiant/deployments","created_at":"2016-02-26T21:32:33Z","updated_at":"2018-07-12T20:25:46Z","pushed_at":"2018-07-12T20:49:12Z","git_url":"git://github.com/supergiant/supergiant.git","ssh_url":"git@github.com:supergiant/supergiant.git","clone_url":"https://github.com/supergiant/supergiant.git","svn_url":"https://github.com/supergiant/supergiant","homepage":"https://supergiant.io/","size":14758,"stargazers_count":565,"watchers_count":565,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":50,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":50,"open_issues":39,"watchers":565,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/supergiant/supergiant/pulls/542"},"html":{"href":"https://github.com/supergiant/supergiant/pull/542"},"issue":{"href":"https://api.github.com/repos/supergiant/supergiant/issues/542"},"comments":{"href":"https://api.github.com/repos/supergiant/supergiant/issues/542/comments"},"review_comments":{"href":"https://api.github.com/repos/supergiant/supergiant/pulls/542/comments"},"review_comment":{"href":"https://api.github.com/repos/supergiant/supergiant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/supergiant/supergiant/pulls/542/commits"},"statuses":{"href":"https://api.github.com/repos/supergiant/supergiant/statuses/b1ad19be719d36ff36ff8233f158b762e9c1bdb2"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"stgleb"}}