{"action":"created","comment":{"url":"https://api.github.com/repos/Devex/spaceflight/pulls/comments/195110943","pull_request_review_id":128411971,"id":195110943,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTExMDk0Mw==","diff_hunk":"@@ -0,0 +1,69 @@\n+package cmd\n+\n+import (\n+\t\"io\"\n+\t\"log\"\n+\t\"net/http\"\n+\t\"os\"\n+\n+\t\"github.com/spf13/cobra\"\n+)\n+\n+// robotsGenGCCmd represents the robots gen_gc command\n+var robotsGenGCCmd = &cobra.Command{\n+\tUse:   \"gen_gc\",\n+\tShort: \"Get golden copy for robots check\",\n+\tLong: `Gets the specified URL contents and stores it as a golden copy\n+for subsequent robots checks.`,\n+\tRun: func(cmd *cobra.Command, args []string) {\n+\t\tif goldenCopy == \"\" {\n+\t\t\tlog.Fatal(\"golden copy is mandatory\")\n+\t\t}\n+\t\tif len(args) < 1 {\n+\t\t\tlog.Fatal(\"No URL specified\")\n+\t\t}\n+\t\turl := args[0]\n+\n+\t\tif _, err := os.Stat(goldenCopy); err == nil {\n+\t\t\tlog.Fatal(\"Golden copy file already exists\")","path":"cmd/dextre/cmd/robots_gen_gc.go","position":28,"original_position":28,"commit_id":"31997f5dcd85e43aec8ad3c2e2436583105068c3","original_commit_id":"0b80c247eda61b38ade7284a851d1ce73222cf93","user":{"login":"ifosch","id":2912400,"node_id":"MDQ6VXNlcjI5MTI0MDA=","avatar_url":"https://avatars1.githubusercontent.com/u/2912400?v=4","gravatar_id":"","url":"https://api.github.com/users/ifosch","html_url":"https://github.com/ifosch","followers_url":"https://api.github.com/users/ifosch/followers","following_url":"https://api.github.com/users/ifosch/following{/other_user}","gists_url":"https://api.github.com/users/ifosch/gists{/gist_id}","starred_url":"https://api.github.com/users/ifosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifosch/subscriptions","organizations_url":"https://api.github.com/users/ifosch/orgs","repos_url":"https://api.github.com/users/ifosch/repos","events_url":"https://api.github.com/users/ifosch/events{/privacy}","received_events_url":"https://api.github.com/users/ifosch/received_events","type":"User","site_admin":false},"body":"Well, this is not creating the file, it is just checking the file exists.","created_at":"2018-06-13T14:44:15Z","updated_at":"2018-06-13T14:44:15Z","html_url":"https://github.com/Devex/spaceflight/pull/102#discussion_r195110943","pull_request_url":"https://api.github.com/repos/Devex/spaceflight/pulls/102","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Devex/spaceflight/pulls/comments/195110943"},"html":{"href":"https://github.com/Devex/spaceflight/pull/102#discussion_r195110943"},"pull_request":{"href":"https://api.github.com/repos/Devex/spaceflight/pulls/102"}},"in_reply_to_id":195107066},"pull_request":{"url":"https://api.github.com/repos/Devex/spaceflight/pulls/102","id":194549071,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NTQ5MDcx","html_url":"https://github.com/Devex/spaceflight/pull/102","diff_url":"https://github.com/Devex/spaceflight/pull/102.diff","patch_url":"https://github.com/Devex/spaceflight/pull/102.patch","issue_url":"https://api.github.com/repos/Devex/spaceflight/issues/102","number":102,"state":"open","locked":false,"title":"DVX-7420 Add robots.txt golden copy generate command to dextre","user":{"login":"ifosch","id":2912400,"node_id":"MDQ6VXNlcjI5MTI0MDA=","avatar_url":"https://avatars1.githubusercontent.com/u/2912400?v=4","gravatar_id":"","url":"https://api.github.com/users/ifosch","html_url":"https://github.com/ifosch","followers_url":"https://api.github.com/users/ifosch/followers","following_url":"https://api.github.com/users/ifosch/following{/other_user}","gists_url":"https://api.github.com/users/ifosch/gists{/gist_id}","starred_url":"https://api.github.com/users/ifosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifosch/subscriptions","organizations_url":"https://api.github.com/users/ifosch/orgs","repos_url":"https://api.github.com/users/ifosch/repos","events_url":"https://api.github.com/users/ifosch/events{/privacy}","received_events_url":"https://api.github.com/users/ifosch/received_events","type":"User","site_admin":false},"body":"This adds a new command with a subcommand to dextre to create a golden copy from\na URL. Usage:\n```\ndextre robots gen_gc -g <destination file> <origin url>\n```\n\nThis golden copy will be used by another `robots` subcommand to check the URL\nhas not changed.\n\nRefs [DVX-7420](https://mydevex.atlassian.net/browse/DVX-7420)","created_at":"2018-06-13T11:04:58Z","updated_at":"2018-06-13T14:44:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7914c464a73d02e304afb5b173db422c5385fad5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":499876964,"node_id":"MDU6TGFiZWw0OTk4NzY5NjQ=","url":"https://api.github.com/repos/Devex/spaceflight/labels/blocked","name":"blocked","color":"eb6420","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Devex/spaceflight/pulls/102/commits","review_comments_url":"https://api.github.com/repos/Devex/spaceflight/pulls/102/comments","review_comment_url":"https://api.github.com/repos/Devex/spaceflight/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Devex/spaceflight/issues/102/comments","statuses_url":"https://api.github.com/repos/Devex/spaceflight/statuses/31997f5dcd85e43aec8ad3c2e2436583105068c3","head":{"label":"ifosch:DVX-7420","ref":"DVX-7420","sha":"31997f5dcd85e43aec8ad3c2e2436583105068c3","user":{"login":"ifosch","id":2912400,"node_id":"MDQ6VXNlcjI5MTI0MDA=","avatar_url":"https://avatars1.githubusercontent.com/u/2912400?v=4","gravatar_id":"","url":"https://api.github.com/users/ifosch","html_url":"https://github.com/ifosch","followers_url":"https://api.github.com/users/ifosch/followers","following_url":"https://api.github.com/users/ifosch/following{/other_user}","gists_url":"https://api.github.com/users/ifosch/gists{/gist_id}","starred_url":"https://api.github.com/users/ifosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifosch/subscriptions","organizations_url":"https://api.github.com/users/ifosch/orgs","repos_url":"https://api.github.com/users/ifosch/repos","events_url":"https://api.github.com/users/ifosch/events{/privacy}","received_events_url":"https://api.github.com/users/ifosch/received_events","type":"User","site_admin":false},"repo":{"id":73132182,"node_id":"MDEwOlJlcG9zaXRvcnk3MzEzMjE4Mg==","name":"spaceflight","full_name":"ifosch/spaceflight","owner":{"login":"ifosch","id":2912400,"node_id":"MDQ6VXNlcjI5MTI0MDA=","avatar_url":"https://avatars1.githubusercontent.com/u/2912400?v=4","gravatar_id":"","url":"https://api.github.com/users/ifosch","html_url":"https://github.com/ifosch","followers_url":"https://api.github.com/users/ifosch/followers","following_url":"https://api.github.com/users/ifosch/following{/other_user}","gists_url":"https://api.github.com/users/ifosch/gists{/gist_id}","starred_url":"https://api.github.com/users/ifosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifosch/subscriptions","organizations_url":"https://api.github.com/users/ifosch/orgs","repos_url":"https://api.github.com/users/ifosch/repos","events_url":"https://api.github.com/users/ifosch/events{/privacy}","received_events_url":"https://api.github.com/users/ifosch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ifosch/spaceflight","description":null,"fork":true,"url":"https://api.github.com/repos/ifosch/spaceflight","forks_url":"https://api.github.com/repos/ifosch/spaceflight/forks","keys_url":"https://api.github.com/repos/ifosch/spaceflight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ifosch/spaceflight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ifosch/spaceflight/teams","hooks_url":"https://api.github.com/repos/ifosch/spaceflight/hooks","issue_events_url":"https://api.github.com/repos/ifosch/spaceflight/issues/events{/number}","events_url":"https://api.github.com/repos/ifosch/spaceflight/events","assignees_url":"https://api.github.com/repos/ifosch/spaceflight/assignees{/user}","branches_url":"https://api.github.com/repos/ifosch/spaceflight/branches{/branch}","tags_url":"https://api.github.com/repos/ifosch/spaceflight/tags","blobs_url":"https://api.github.com/repos/ifosch/spaceflight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ifosch/spaceflight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ifosch/spaceflight/git/refs{/sha}","trees_url":"https://api.github.com/repos/ifosch/spaceflight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ifosch/spaceflight/statuses/{sha}","languages_url":"https://api.github.com/repos/ifosch/spaceflight/languages","stargazers_url":"https://api.github.com/repos/ifosch/spaceflight/stargazers","contributors_url":"https://api.github.com/repos/ifosch/spaceflight/contributors","subscribers_url":"https://api.github.com/repos/ifosch/spaceflight/subscribers","subscription_url":"https://api.github.com/repos/ifosch/spaceflight/subscription","commits_url":"https://api.github.com/repos/ifosch/spaceflight/commits{/sha}","git_commits_url":"https://api.github.com/repos/ifosch/spaceflight/git/commits{/sha}","comments_url":"https://api.github.com/repos/ifosch/spaceflight/comments{/number}","issue_comment_url":"https://api.github.com/repos/ifosch/spaceflight/issues/comments{/number}","contents_url":"https://api.github.com/repos/ifosch/spaceflight/contents/{+path}","compare_url":"https://api.github.com/repos/ifosch/spaceflight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ifosch/spaceflight/merges","archive_url":"https://api.github.com/repos/ifosch/spaceflight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ifosch/spaceflight/downloads","issues_url":"https://api.github.com/repos/ifosch/spaceflight/issues{/number}","pulls_url":"https://api.github.com/repos/ifosch/spaceflight/pulls{/number}","milestones_url":"https://api.github.com/repos/ifosch/spaceflight/milestones{/number}","notifications_url":"https://api.github.com/repos/ifosch/spaceflight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ifosch/spaceflight/labels{/name}","releases_url":"https://api.github.com/repos/ifosch/spaceflight/releases{/id}","deployments_url":"https://api.github.com/repos/ifosch/spaceflight/deployments","created_at":"2016-11-08T00:03:26Z","updated_at":"2016-11-08T00:03:27Z","pushed_at":"2018-06-13T14:42:05Z","git_url":"git://github.com/ifosch/spaceflight.git","ssh_url":"git@github.com:ifosch/spaceflight.git","clone_url":"https://github.com/ifosch/spaceflight.git","svn_url":"https://github.com/ifosch/spaceflight","homepage":null,"size":457,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Devex:develop","ref":"develop","sha":"9ab99f32551263a45e669c83edb4c2b3bfc6e9f5","user":{"login":"Devex","id":3806616,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MDY2MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/3806616?v=4","gravatar_id":"","url":"https://api.github.com/users/Devex","html_url":"https://github.com/Devex","followers_url":"https://api.github.com/users/Devex/followers","following_url":"https://api.github.com/users/Devex/following{/other_user}","gists_url":"https://api.github.com/users/Devex/gists{/gist_id}","starred_url":"https://api.github.com/users/Devex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Devex/subscriptions","organizations_url":"https://api.github.com/users/Devex/orgs","repos_url":"https://api.github.com/users/Devex/repos","events_url":"https://api.github.com/users/Devex/events{/privacy}","received_events_url":"https://api.github.com/users/Devex/received_events","type":"Organization","site_admin":false},"repo":{"id":76343664,"node_id":"MDEwOlJlcG9zaXRvcnk3NjM0MzY2NA==","name":"spaceflight","full_name":"Devex/spaceflight","owner":{"login":"Devex","id":3806616,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MDY2MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/3806616?v=4","gravatar_id":"","url":"https://api.github.com/users/Devex","html_url":"https://github.com/Devex","followers_url":"https://api.github.com/users/Devex/followers","following_url":"https://api.github.com/users/Devex/following{/other_user}","gists_url":"https://api.github.com/users/Devex/gists{/gist_id}","starred_url":"https://api.github.com/users/Devex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Devex/subscriptions","organizations_url":"https://api.github.com/users/Devex/orgs","repos_url":"https://api.github.com/users/Devex/repos","events_url":"https://api.github.com/users/Devex/events{/privacy}","received_events_url":"https://api.github.com/users/Devex/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Devex/spaceflight","description":"Toolbox for orchestrating infrastructure in 3rd party cloud providers.","fork":true,"url":"https://api.github.com/repos/Devex/spaceflight","forks_url":"https://api.github.com/repos/Devex/spaceflight/forks","keys_url":"https://api.github.com/repos/Devex/spaceflight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Devex/spaceflight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Devex/spaceflight/teams","hooks_url":"https://api.github.com/repos/Devex/spaceflight/hooks","issue_events_url":"https://api.github.com/repos/Devex/spaceflight/issues/events{/number}","events_url":"https://api.github.com/repos/Devex/spaceflight/events","assignees_url":"https://api.github.com/repos/Devex/spaceflight/assignees{/user}","branches_url":"https://api.github.com/repos/Devex/spaceflight/branches{/branch}","tags_url":"https://api.github.com/repos/Devex/spaceflight/tags","blobs_url":"https://api.github.com/repos/Devex/spaceflight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Devex/spaceflight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Devex/spaceflight/git/refs{/sha}","trees_url":"https://api.github.com/repos/Devex/spaceflight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Devex/spaceflight/statuses/{sha}","languages_url":"https://api.github.com/repos/Devex/spaceflight/languages","stargazers_url":"https://api.github.com/repos/Devex/spaceflight/stargazers","contributors_url":"https://api.github.com/repos/Devex/spaceflight/contributors","subscribers_url":"https://api.github.com/repos/Devex/spaceflight/subscribers","subscription_url":"https://api.github.com/repos/Devex/spaceflight/subscription","commits_url":"https://api.github.com/repos/Devex/spaceflight/commits{/sha}","git_commits_url":"https://api.github.com/repos/Devex/spaceflight/git/commits{/sha}","comments_url":"https://api.github.com/repos/Devex/spaceflight/comments{/number}","issue_comment_url":"https://api.github.com/repos/Devex/spaceflight/issues/comments{/number}","contents_url":"https://api.github.com/repos/Devex/spaceflight/contents/{+path}","compare_url":"https://api.github.com/repos/Devex/spaceflight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Devex/spaceflight/merges","archive_url":"https://api.github.com/repos/Devex/spaceflight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Devex/spaceflight/downloads","issues_url":"https://api.github.com/repos/Devex/spaceflight/issues{/number}","pulls_url":"https://api.github.com/repos/Devex/spaceflight/pulls{/number}","milestones_url":"https://api.github.com/repos/Devex/spaceflight/milestones{/number}","notifications_url":"https://api.github.com/repos/Devex/spaceflight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Devex/spaceflight/labels{/name}","releases_url":"https://api.github.com/repos/Devex/spaceflight/releases{/id}","deployments_url":"https://api.github.com/repos/Devex/spaceflight/deployments","created_at":"2016-12-13T09:29:14Z","updated_at":"2018-05-10T10:53:32Z","pushed_at":"2018-06-13T14:42:06Z","git_url":"git://github.com/Devex/spaceflight.git","ssh_url":"git@github.com:Devex/spaceflight.git","clone_url":"https://github.com/Devex/spaceflight.git","svn_url":"https://github.com/Devex/spaceflight","homepage":"","size":426,"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":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Devex/spaceflight/pulls/102"},"html":{"href":"https://github.com/Devex/spaceflight/pull/102"},"issue":{"href":"https://api.github.com/repos/Devex/spaceflight/issues/102"},"comments":{"href":"https://api.github.com/repos/Devex/spaceflight/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/Devex/spaceflight/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/Devex/spaceflight/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Devex/spaceflight/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/Devex/spaceflight/statuses/31997f5dcd85e43aec8ad3c2e2436583105068c3"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ifosch"}}