{"action":"created","comment":{"url":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls/comments/75211425","id":75211425,"diff_hunk":"@@ -303,4 +304,151 @@ describe('index', () => {\n             });\n         });\n     });\n+\n+    describe('getFile', () => {\n+        const scmUrl = 'git@github.com:screwdriver-cd/models.git';\n+        const content = `IyB3b3JrZmxvdzoKIyAgICAgLSBwdWJsaXNoCgpqb2JzOgogICAgbWFpbjoK\\n","path":"test/index.test.js","position":17,"original_position":17,"commit_id":"fe8077339c52b2fc83ae3c2d846ffa63023c22a6","original_commit_id":"b30726938a9d1fcd4081929705c29e4520a206ad","user":{"login":"FenrirUnbound","id":721148,"avatar_url":"https://avatars.githubusercontent.com/u/721148?v=3","gravatar_id":"","url":"https://api.github.com/users/FenrirUnbound","html_url":"https://github.com/FenrirUnbound","followers_url":"https://api.github.com/users/FenrirUnbound/followers","following_url":"https://api.github.com/users/FenrirUnbound/following{/other_user}","gists_url":"https://api.github.com/users/FenrirUnbound/gists{/gist_id}","starred_url":"https://api.github.com/users/FenrirUnbound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FenrirUnbound/subscriptions","organizations_url":"https://api.github.com/users/FenrirUnbound/orgs","repos_url":"https://api.github.com/users/FenrirUnbound/repos","events_url":"https://api.github.com/users/FenrirUnbound/events{/privacy}","received_events_url":"https://api.github.com/users/FenrirUnbound/received_events","type":"User","site_admin":false},"body":"Why did you use ticks for the string?","created_at":"2016-08-17T21:31:48Z","updated_at":"2016-08-17T21:31:48Z","html_url":"https://github.com/screwdriver-cd/scm-github/pull/2#discussion_r75211425","pull_request_url":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls/comments/75211425"},"html":{"href":"https://github.com/screwdriver-cd/scm-github/pull/2#discussion_r75211425"},"pull_request":{"href":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls/2","id":81567530,"html_url":"https://github.com/screwdriver-cd/scm-github/pull/2","diff_url":"https://github.com/screwdriver-cd/scm-github/pull/2.diff","patch_url":"https://github.com/screwdriver-cd/scm-github/pull/2.patch","issue_url":"https://api.github.com/repos/screwdriver-cd/scm-github/issues/2","number":2,"state":"open","locked":false,"title":"Adding getFile implementation","user":{"login":"nkatzman","id":3277004,"avatar_url":"https://avatars.githubusercontent.com/u/3277004?v=3","gravatar_id":"","url":"https://api.github.com/users/nkatzman","html_url":"https://github.com/nkatzman","followers_url":"https://api.github.com/users/nkatzman/followers","following_url":"https://api.github.com/users/nkatzman/following{/other_user}","gists_url":"https://api.github.com/users/nkatzman/gists{/gist_id}","starred_url":"https://api.github.com/users/nkatzman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkatzman/subscriptions","organizations_url":"https://api.github.com/users/nkatzman/orgs","repos_url":"https://api.github.com/users/nkatzman/repos","events_url":"https://api.github.com/users/nkatzman/events{/privacy}","received_events_url":"https://api.github.com/users/nkatzman/received_events","type":"User","site_admin":false},"body":"This PR adds in the implementation of the `getFile` function\r\n\r\nIt takes in an scmUrl, token, path and a reference and will return the contents of the file that is found on github.\r\n\r\nWe probably needs to come up with an error translation function","created_at":"2016-08-17T00:31:29Z","updated_at":"2016-08-17T21:31:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad69293440060b5c30e9df9c3cd27241ee3ffaf0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls/2/commits","review_comments_url":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls/2/comments","review_comment_url":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls/comments{/number}","comments_url":"https://api.github.com/repos/screwdriver-cd/scm-github/issues/2/comments","statuses_url":"https://api.github.com/repos/screwdriver-cd/scm-github/statuses/fe8077339c52b2fc83ae3c2d846ffa63023c22a6","head":{"label":"screwdriver-cd:readFile","ref":"readFile","sha":"fe8077339c52b2fc83ae3c2d846ffa63023c22a6","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":65842228,"name":"scm-github","full_name":"screwdriver-cd/scm-github","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/scm-github","description":"Github implementation of the scm-base class","fork":false,"url":"https://api.github.com/repos/screwdriver-cd/scm-github","forks_url":"https://api.github.com/repos/screwdriver-cd/scm-github/forks","keys_url":"https://api.github.com/repos/screwdriver-cd/scm-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/screwdriver-cd/scm-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/screwdriver-cd/scm-github/teams","hooks_url":"https://api.github.com/repos/screwdriver-cd/scm-github/hooks","issue_events_url":"https://api.github.com/repos/screwdriver-cd/scm-github/issues/events{/number}","events_url":"https://api.github.com/repos/screwdriver-cd/scm-github/events","assignees_url":"https://api.github.com/repos/screwdriver-cd/scm-github/assignees{/user}","branches_url":"https://api.github.com/repos/screwdriver-cd/scm-github/branches{/branch}","tags_url":"https://api.github.com/repos/screwdriver-cd/scm-github/tags","blobs_url":"https://api.github.com/repos/screwdriver-cd/scm-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/screwdriver-cd/scm-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/screwdriver-cd/scm-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/screwdriver-cd/scm-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/screwdriver-cd/scm-github/statuses/{sha}","languages_url":"https://api.github.com/repos/screwdriver-cd/scm-github/languages","stargazers_url":"https://api.github.com/repos/screwdriver-cd/scm-github/stargazers","contributors_url":"https://api.github.com/repos/screwdriver-cd/scm-github/contributors","subscribers_url":"https://api.github.com/repos/screwdriver-cd/scm-github/subscribers","subscription_url":"https://api.github.com/repos/screwdriver-cd/scm-github/subscription","commits_url":"https://api.github.com/repos/screwdriver-cd/scm-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/screwdriver-cd/scm-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/screwdriver-cd/scm-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/screwdriver-cd/scm-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/screwdriver-cd/scm-github/contents/{+path}","compare_url":"https://api.github.com/repos/screwdriver-cd/scm-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/screwdriver-cd/scm-github/merges","archive_url":"https://api.github.com/repos/screwdriver-cd/scm-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/screwdriver-cd/scm-github/downloads","issues_url":"https://api.github.com/repos/screwdriver-cd/scm-github/issues{/number}","pulls_url":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls{/number}","milestones_url":"https://api.github.com/repos/screwdriver-cd/scm-github/milestones{/number}","notifications_url":"https://api.github.com/repos/screwdriver-cd/scm-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/screwdriver-cd/scm-github/labels{/name}","releases_url":"https://api.github.com/repos/screwdriver-cd/scm-github/releases{/id}","deployments_url":"https://api.github.com/repos/screwdriver-cd/scm-github/deployments","created_at":"2016-08-16T18:02:02Z","updated_at":"2016-08-16T18:10:13Z","pushed_at":"2016-08-17T20:45:43Z","git_url":"git://github.com/screwdriver-cd/scm-github.git","ssh_url":"git@github.com:screwdriver-cd/scm-github.git","clone_url":"https://github.com/screwdriver-cd/scm-github.git","svn_url":"https://github.com/screwdriver-cd/scm-github","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"e30b193fba30a48c5a2c7608585a7a99503c776d","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":65842228,"name":"scm-github","full_name":"screwdriver-cd/scm-github","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/scm-github","description":"Github implementation of the scm-base class","fork":false,"url":"https://api.github.com/repos/screwdriver-cd/scm-github","forks_url":"https://api.github.com/repos/screwdriver-cd/scm-github/forks","keys_url":"https://api.github.com/repos/screwdriver-cd/scm-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/screwdriver-cd/scm-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/screwdriver-cd/scm-github/teams","hooks_url":"https://api.github.com/repos/screwdriver-cd/scm-github/hooks","issue_events_url":"https://api.github.com/repos/screwdriver-cd/scm-github/issues/events{/number}","events_url":"https://api.github.com/repos/screwdriver-cd/scm-github/events","assignees_url":"https://api.github.com/repos/screwdriver-cd/scm-github/assignees{/user}","branches_url":"https://api.github.com/repos/screwdriver-cd/scm-github/branches{/branch}","tags_url":"https://api.github.com/repos/screwdriver-cd/scm-github/tags","blobs_url":"https://api.github.com/repos/screwdriver-cd/scm-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/screwdriver-cd/scm-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/screwdriver-cd/scm-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/screwdriver-cd/scm-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/screwdriver-cd/scm-github/statuses/{sha}","languages_url":"https://api.github.com/repos/screwdriver-cd/scm-github/languages","stargazers_url":"https://api.github.com/repos/screwdriver-cd/scm-github/stargazers","contributors_url":"https://api.github.com/repos/screwdriver-cd/scm-github/contributors","subscribers_url":"https://api.github.com/repos/screwdriver-cd/scm-github/subscribers","subscription_url":"https://api.github.com/repos/screwdriver-cd/scm-github/subscription","commits_url":"https://api.github.com/repos/screwdriver-cd/scm-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/screwdriver-cd/scm-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/screwdriver-cd/scm-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/screwdriver-cd/scm-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/screwdriver-cd/scm-github/contents/{+path}","compare_url":"https://api.github.com/repos/screwdriver-cd/scm-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/screwdriver-cd/scm-github/merges","archive_url":"https://api.github.com/repos/screwdriver-cd/scm-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/screwdriver-cd/scm-github/downloads","issues_url":"https://api.github.com/repos/screwdriver-cd/scm-github/issues{/number}","pulls_url":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls{/number}","milestones_url":"https://api.github.com/repos/screwdriver-cd/scm-github/milestones{/number}","notifications_url":"https://api.github.com/repos/screwdriver-cd/scm-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/screwdriver-cd/scm-github/labels{/name}","releases_url":"https://api.github.com/repos/screwdriver-cd/scm-github/releases{/id}","deployments_url":"https://api.github.com/repos/screwdriver-cd/scm-github/deployments","created_at":"2016-08-16T18:02:02Z","updated_at":"2016-08-16T18:10:13Z","pushed_at":"2016-08-17T20:45:43Z","git_url":"git://github.com/screwdriver-cd/scm-github.git","ssh_url":"git@github.com:screwdriver-cd/scm-github.git","clone_url":"https://github.com/screwdriver-cd/scm-github.git","svn_url":"https://github.com/screwdriver-cd/scm-github","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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/scm-github/pulls/2"},"html":{"href":"https://github.com/screwdriver-cd/scm-github/pull/2"},"issue":{"href":"https://api.github.com/repos/screwdriver-cd/scm-github/issues/2"},"comments":{"href":"https://api.github.com/repos/screwdriver-cd/scm-github/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/screwdriver-cd/scm-github/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/screwdriver-cd/scm-github/statuses/fe8077339c52b2fc83ae3c2d846ffa63023c22a6"}}}}
{"actor":{"display_login":"FenrirUnbound"}}