{"action":"created","comment":{"url":"https://api.github.com/repos/screwdriver-cd/log-service/pulls/comments/76302166","id":76302166,"diff_hunk":"@@ -0,0 +1,68 @@\n+package main\n+\n+import (\n+\t\"bufio\"\n+\t\"fmt\"\n+\t\"io\"\n+\t\"os\"\n+\n+\t\"github.com/urfave/cli\"\n+)\n+\n+var VERSION string\n+\n+var open = os.Open\n+\n+func scanFile(output io.Writer, file, buildID string) error {\n+\tbody, err := open(file)\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"Unexpected error opening the file: %v\", err)\n+\t}\n+\n+\tscanner := bufio.NewScanner(body)\n+\n+\tfor scanner.Scan() {\n+\t\tfmt.Fprintln(output, scanner.Text())\n+\t}\n+\tif err := scanner.Err(); err != nil {\n+\t\treturn fmt.Errorf(\"Unexpected scan error: %v\", err)\n+\t}\n+\n+\treturn nil\n+}\n+\n+func main() {\n+\tapp := cli.NewApp()\n+\tapp.Name = \"logservice\"\n+\tapp.Usage = \"For now, scans a file and prints to stdout\"\n+\tapp.UsageText = \"logservice [options] build-id\"\n+\tapp.Copyright = \"(c) 2016 Yahoo Inc.\"\n+\n+\tif VERSION == \"\" {","path":"logservice.go","position":41,"original_position":41,"commit_id":"497e05afb0f2dbaf0fb8fc990e0d72e9921e40d1","original_commit_id":"497e05afb0f2dbaf0fb8fc990e0d72e9921e40d1","user":{"login":"d2lam","id":3401924,"avatar_url":"https://avatars.githubusercontent.com/u/3401924?v=3","gravatar_id":"","url":"https://api.github.com/users/d2lam","html_url":"https://github.com/d2lam","followers_url":"https://api.github.com/users/d2lam/followers","following_url":"https://api.github.com/users/d2lam/following{/other_user}","gists_url":"https://api.github.com/users/d2lam/gists{/gist_id}","starred_url":"https://api.github.com/users/d2lam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d2lam/subscriptions","organizations_url":"https://api.github.com/users/d2lam/orgs","repos_url":"https://api.github.com/users/d2lam/repos","events_url":"https://api.github.com/users/d2lam/events{/privacy}","received_events_url":"https://api.github.com/users/d2lam/received_events","type":"User","site_admin":false},"body":"When does `VERSION` get set?","created_at":"2016-08-25T18:45:32Z","updated_at":"2016-08-25T18:45:32Z","html_url":"https://github.com/screwdriver-cd/log-service/pull/1#discussion_r76302166","pull_request_url":"https://api.github.com/repos/screwdriver-cd/log-service/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/screwdriver-cd/log-service/pulls/comments/76302166"},"html":{"href":"https://github.com/screwdriver-cd/log-service/pull/1#discussion_r76302166"},"pull_request":{"href":"https://api.github.com/repos/screwdriver-cd/log-service/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/screwdriver-cd/log-service/pulls/1","id":82633656,"html_url":"https://github.com/screwdriver-cd/log-service/pull/1","diff_url":"https://github.com/screwdriver-cd/log-service/pull/1.diff","patch_url":"https://github.com/screwdriver-cd/log-service/pull/1.patch","issue_url":"https://api.github.com/repos/screwdriver-cd/log-service/issues/1","number":1,"state":"open","locked":false,"title":"Test reading file","user":{"login":"Filbird","id":11892496,"avatar_url":"https://avatars.githubusercontent.com/u/11892496?v=3","gravatar_id":"","url":"https://api.github.com/users/Filbird","html_url":"https://github.com/Filbird","followers_url":"https://api.github.com/users/Filbird/followers","following_url":"https://api.github.com/users/Filbird/following{/other_user}","gists_url":"https://api.github.com/users/Filbird/gists{/gist_id}","starred_url":"https://api.github.com/users/Filbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Filbird/subscriptions","organizations_url":"https://api.github.com/users/Filbird/orgs","repos_url":"https://api.github.com/users/Filbird/repos","events_url":"https://api.github.com/users/Filbird/events{/privacy}","received_events_url":"https://api.github.com/users/Filbird/received_events","type":"User","site_admin":false},"body":"For now simply reads a file specified in the flag and prints line by line to stdout.","created_at":"2016-08-24T23:15:22Z","updated_at":"2016-08-25T18:45:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5eec7a946afd92dd9241567c09706640be7aac00","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/screwdriver-cd/log-service/pulls/1/commits","review_comments_url":"https://api.github.com/repos/screwdriver-cd/log-service/pulls/1/comments","review_comment_url":"https://api.github.com/repos/screwdriver-cd/log-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/screwdriver-cd/log-service/issues/1/comments","statuses_url":"https://api.github.com/repos/screwdriver-cd/log-service/statuses/497e05afb0f2dbaf0fb8fc990e0d72e9921e40d1","head":{"label":"screwdriver-cd:initialStab","ref":"initialStab","sha":"497e05afb0f2dbaf0fb8fc990e0d72e9921e40d1","user":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars.githubusercontent.com/u/19417863?v=3","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"repo":{"id":66489458,"name":"log-service","full_name":"screwdriver-cd/log-service","owner":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars.githubusercontent.com/u/19417863?v=3","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/screwdriver-cd/log-service","description":"Log service ","fork":false,"url":"https://api.github.com/repos/screwdriver-cd/log-service","forks_url":"https://api.github.com/repos/screwdriver-cd/log-service/forks","keys_url":"https://api.github.com/repos/screwdriver-cd/log-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/screwdriver-cd/log-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/screwdriver-cd/log-service/teams","hooks_url":"https://api.github.com/repos/screwdriver-cd/log-service/hooks","issue_events_url":"https://api.github.com/repos/screwdriver-cd/log-service/issues/events{/number}","events_url":"https://api.github.com/repos/screwdriver-cd/log-service/events","assignees_url":"https://api.github.com/repos/screwdriver-cd/log-service/assignees{/user}","branches_url":"https://api.github.com/repos/screwdriver-cd/log-service/branches{/branch}","tags_url":"https://api.github.com/repos/screwdriver-cd/log-service/tags","blobs_url":"https://api.github.com/repos/screwdriver-cd/log-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/screwdriver-cd/log-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/screwdriver-cd/log-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/screwdriver-cd/log-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/screwdriver-cd/log-service/statuses/{sha}","languages_url":"https://api.github.com/repos/screwdriver-cd/log-service/languages","stargazers_url":"https://api.github.com/repos/screwdriver-cd/log-service/stargazers","contributors_url":"https://api.github.com/repos/screwdriver-cd/log-service/contributors","subscribers_url":"https://api.github.com/repos/screwdriver-cd/log-service/subscribers","subscription_url":"https://api.github.com/repos/screwdriver-cd/log-service/subscription","commits_url":"https://api.github.com/repos/screwdriver-cd/log-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/screwdriver-cd/log-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/screwdriver-cd/log-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/screwdriver-cd/log-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/screwdriver-cd/log-service/contents/{+path}","compare_url":"https://api.github.com/repos/screwdriver-cd/log-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/screwdriver-cd/log-service/merges","archive_url":"https://api.github.com/repos/screwdriver-cd/log-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/screwdriver-cd/log-service/downloads","issues_url":"https://api.github.com/repos/screwdriver-cd/log-service/issues{/number}","pulls_url":"https://api.github.com/repos/screwdriver-cd/log-service/pulls{/number}","milestones_url":"https://api.github.com/repos/screwdriver-cd/log-service/milestones{/number}","notifications_url":"https://api.github.com/repos/screwdriver-cd/log-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/screwdriver-cd/log-service/labels{/name}","releases_url":"https://api.github.com/repos/screwdriver-cd/log-service/releases{/id}","deployments_url":"https://api.github.com/repos/screwdriver-cd/log-service/deployments","created_at":"2016-08-24T18:30:10Z","updated_at":"2016-08-24T19:36:28Z","pushed_at":"2016-08-25T17:35:53Z","git_url":"git://github.com/screwdriver-cd/log-service.git","ssh_url":"git@github.com:screwdriver-cd/log-service.git","clone_url":"https://github.com/screwdriver-cd/log-service.git","svn_url":"https://github.com/screwdriver-cd/log-service","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"screwdriver-cd:master","ref":"master","sha":"36776ef73f93787191ad93722492d66ee0b6e86e","user":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars.githubusercontent.com/u/19417863?v=3","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"repo":{"id":66489458,"name":"log-service","full_name":"screwdriver-cd/log-service","owner":{"login":"screwdriver-cd","id":19417863,"avatar_url":"https://avatars.githubusercontent.com/u/19417863?v=3","gravatar_id":"","url":"https://api.github.com/users/screwdriver-cd","html_url":"https://github.com/screwdriver-cd","followers_url":"https://api.github.com/users/screwdriver-cd/followers","following_url":"https://api.github.com/users/screwdriver-cd/following{/other_user}","gists_url":"https://api.github.com/users/screwdriver-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/screwdriver-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/screwdriver-cd/subscriptions","organizations_url":"https://api.github.com/users/screwdriver-cd/orgs","repos_url":"https://api.github.com/users/screwdriver-cd/repos","events_url":"https://api.github.com/users/screwdriver-cd/events{/privacy}","received_events_url":"https://api.github.com/users/screwdriver-cd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/screwdriver-cd/log-service","description":"Log service ","fork":false,"url":"https://api.github.com/repos/screwdriver-cd/log-service","forks_url":"https://api.github.com/repos/screwdriver-cd/log-service/forks","keys_url":"https://api.github.com/repos/screwdriver-cd/log-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/screwdriver-cd/log-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/screwdriver-cd/log-service/teams","hooks_url":"https://api.github.com/repos/screwdriver-cd/log-service/hooks","issue_events_url":"https://api.github.com/repos/screwdriver-cd/log-service/issues/events{/number}","events_url":"https://api.github.com/repos/screwdriver-cd/log-service/events","assignees_url":"https://api.github.com/repos/screwdriver-cd/log-service/assignees{/user}","branches_url":"https://api.github.com/repos/screwdriver-cd/log-service/branches{/branch}","tags_url":"https://api.github.com/repos/screwdriver-cd/log-service/tags","blobs_url":"https://api.github.com/repos/screwdriver-cd/log-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/screwdriver-cd/log-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/screwdriver-cd/log-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/screwdriver-cd/log-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/screwdriver-cd/log-service/statuses/{sha}","languages_url":"https://api.github.com/repos/screwdriver-cd/log-service/languages","stargazers_url":"https://api.github.com/repos/screwdriver-cd/log-service/stargazers","contributors_url":"https://api.github.com/repos/screwdriver-cd/log-service/contributors","subscribers_url":"https://api.github.com/repos/screwdriver-cd/log-service/subscribers","subscription_url":"https://api.github.com/repos/screwdriver-cd/log-service/subscription","commits_url":"https://api.github.com/repos/screwdriver-cd/log-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/screwdriver-cd/log-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/screwdriver-cd/log-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/screwdriver-cd/log-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/screwdriver-cd/log-service/contents/{+path}","compare_url":"https://api.github.com/repos/screwdriver-cd/log-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/screwdriver-cd/log-service/merges","archive_url":"https://api.github.com/repos/screwdriver-cd/log-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/screwdriver-cd/log-service/downloads","issues_url":"https://api.github.com/repos/screwdriver-cd/log-service/issues{/number}","pulls_url":"https://api.github.com/repos/screwdriver-cd/log-service/pulls{/number}","milestones_url":"https://api.github.com/repos/screwdriver-cd/log-service/milestones{/number}","notifications_url":"https://api.github.com/repos/screwdriver-cd/log-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/screwdriver-cd/log-service/labels{/name}","releases_url":"https://api.github.com/repos/screwdriver-cd/log-service/releases{/id}","deployments_url":"https://api.github.com/repos/screwdriver-cd/log-service/deployments","created_at":"2016-08-24T18:30:10Z","updated_at":"2016-08-24T19:36:28Z","pushed_at":"2016-08-25T17:35:53Z","git_url":"git://github.com/screwdriver-cd/log-service.git","ssh_url":"git@github.com:screwdriver-cd/log-service.git","clone_url":"https://github.com/screwdriver-cd/log-service.git","svn_url":"https://github.com/screwdriver-cd/log-service","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/screwdriver-cd/log-service/pulls/1"},"html":{"href":"https://github.com/screwdriver-cd/log-service/pull/1"},"issue":{"href":"https://api.github.com/repos/screwdriver-cd/log-service/issues/1"},"comments":{"href":"https://api.github.com/repos/screwdriver-cd/log-service/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/screwdriver-cd/log-service/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/screwdriver-cd/log-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/screwdriver-cd/log-service/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/screwdriver-cd/log-service/statuses/497e05afb0f2dbaf0fb8fc990e0d72e9921e40d1"}}}}
{"actor":{"display_login":"d2lam"}}