{"action":"created","comment":{"url":"https://api.github.com/repos/lumoslabs/txgh/pulls/comments/81196264","pull_request_review_id":2193923,"id":81196264,"diff_hunk":"@@ -34,17 +34,21 @@ def create_ref(branch, sha)\n       client.create_ref(repo_name, branch, sha) rescue false\n     end\n \n-    def update_contents(branch, content_map, message)\n-      content_map.each do |path, new_contents|\n+    def update_contents(branch, content_list, message)\n+      content_list.each do |file_params|\n+        path = file_params.fetch(:path)\n+        new_contents = file_params.fetch(:contents)","path":"txgh/lib/txgh/github_api.rb","position":9,"original_position":9,"commit_id":"055eccdacc3c335e4a53086ed68ecd2f771c23c7","original_commit_id":"055eccdacc3c335e4a53086ed68ecd2f771c23c7","user":{"login":"jdoconnor","id":348383,"avatar_url":"https://avatars.githubusercontent.com/u/348383?v=3","gravatar_id":"","url":"https://api.github.com/users/jdoconnor","html_url":"https://github.com/jdoconnor","followers_url":"https://api.github.com/users/jdoconnor/followers","following_url":"https://api.github.com/users/jdoconnor/following{/other_user}","gists_url":"https://api.github.com/users/jdoconnor/gists{/gist_id}","starred_url":"https://api.github.com/users/jdoconnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdoconnor/subscriptions","organizations_url":"https://api.github.com/users/jdoconnor/orgs","repos_url":"https://api.github.com/users/jdoconnor/repos","events_url":"https://api.github.com/users/jdoconnor/events{/privacy}","received_events_url":"https://api.github.com/users/jdoconnor/received_events","type":"User","site_admin":false},"body":"is this being used?","created_at":"2016-09-29T17:55:22Z","updated_at":"2016-09-29T17:55:26Z","html_url":"https://github.com/lumoslabs/txgh/pull/53#discussion_r81196264","pull_request_url":"https://api.github.com/repos/lumoslabs/txgh/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/lumoslabs/txgh/pulls/comments/81196264"},"html":{"href":"https://github.com/lumoslabs/txgh/pull/53#discussion_r81196264"},"pull_request":{"href":"https://api.github.com/repos/lumoslabs/txgh/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/lumoslabs/txgh/pulls/53","id":87334849,"html_url":"https://github.com/lumoslabs/txgh/pull/53","diff_url":"https://github.com/lumoslabs/txgh/pull/53.diff","patch_url":"https://github.com/lumoslabs/txgh/pull/53.patch","issue_url":"https://api.github.com/repos/lumoslabs/txgh/issues/53","number":53,"state":"open","locked":false,"title":"Provide ability to pass in file sha in GithubApi#update_contents","user":{"login":"camertron","id":575280,"avatar_url":"https://avatars.githubusercontent.com/u/575280?v=3","gravatar_id":"","url":"https://api.github.com/users/camertron","html_url":"https://github.com/camertron","followers_url":"https://api.github.com/users/camertron/followers","following_url":"https://api.github.com/users/camertron/following{/other_user}","gists_url":"https://api.github.com/users/camertron/gists{/gist_id}","starred_url":"https://api.github.com/users/camertron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camertron/subscriptions","organizations_url":"https://api.github.com/users/camertron/orgs","repos_url":"https://api.github.com/users/camertron/repos","events_url":"https://api.github.com/users/camertron/events{/privacy}","received_events_url":"https://api.github.com/users/camertron/received_events","type":"User","site_admin":false},"body":"@lumoslabs/platform ","created_at":"2016-09-29T15:19:40Z","updated_at":"2016-09-29T17:55:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3b996e0b077bbbcc33a8c6b1ab50c5fcbcc23f5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lumoslabs/txgh/pulls/53/commits","review_comments_url":"https://api.github.com/repos/lumoslabs/txgh/pulls/53/comments","review_comment_url":"https://api.github.com/repos/lumoslabs/txgh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lumoslabs/txgh/issues/53/comments","statuses_url":"https://api.github.com/repos/lumoslabs/txgh/statuses/055eccdacc3c335e4a53086ed68ecd2f771c23c7","head":{"label":"lumoslabs:flexible_content_update","ref":"flexible_content_update","sha":"055eccdacc3c335e4a53086ed68ecd2f771c23c7","user":{"login":"lumoslabs","id":723646,"avatar_url":"https://avatars.githubusercontent.com/u/723646?v=3","gravatar_id":"","url":"https://api.github.com/users/lumoslabs","html_url":"https://github.com/lumoslabs","followers_url":"https://api.github.com/users/lumoslabs/followers","following_url":"https://api.github.com/users/lumoslabs/following{/other_user}","gists_url":"https://api.github.com/users/lumoslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/lumoslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumoslabs/subscriptions","organizations_url":"https://api.github.com/users/lumoslabs/orgs","repos_url":"https://api.github.com/users/lumoslabs/repos","events_url":"https://api.github.com/users/lumoslabs/events{/privacy}","received_events_url":"https://api.github.com/users/lumoslabs/received_events","type":"Organization","site_admin":false},"repo":{"id":49293078,"name":"txgh","full_name":"lumoslabs/txgh","owner":{"login":"lumoslabs","id":723646,"avatar_url":"https://avatars.githubusercontent.com/u/723646?v=3","gravatar_id":"","url":"https://api.github.com/users/lumoslabs","html_url":"https://github.com/lumoslabs","followers_url":"https://api.github.com/users/lumoslabs/followers","following_url":"https://api.github.com/users/lumoslabs/following{/other_user}","gists_url":"https://api.github.com/users/lumoslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/lumoslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumoslabs/subscriptions","organizations_url":"https://api.github.com/users/lumoslabs/orgs","repos_url":"https://api.github.com/users/lumoslabs/repos","events_url":"https://api.github.com/users/lumoslabs/events{/privacy}","received_events_url":"https://api.github.com/users/lumoslabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lumoslabs/txgh","description":"A server that automatically syncs translation resources between Github and Transifex.","fork":true,"url":"https://api.github.com/repos/lumoslabs/txgh","forks_url":"https://api.github.com/repos/lumoslabs/txgh/forks","keys_url":"https://api.github.com/repos/lumoslabs/txgh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lumoslabs/txgh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lumoslabs/txgh/teams","hooks_url":"https://api.github.com/repos/lumoslabs/txgh/hooks","issue_events_url":"https://api.github.com/repos/lumoslabs/txgh/issues/events{/number}","events_url":"https://api.github.com/repos/lumoslabs/txgh/events","assignees_url":"https://api.github.com/repos/lumoslabs/txgh/assignees{/user}","branches_url":"https://api.github.com/repos/lumoslabs/txgh/branches{/branch}","tags_url":"https://api.github.com/repos/lumoslabs/txgh/tags","blobs_url":"https://api.github.com/repos/lumoslabs/txgh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lumoslabs/txgh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lumoslabs/txgh/git/refs{/sha}","trees_url":"https://api.github.com/repos/lumoslabs/txgh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lumoslabs/txgh/statuses/{sha}","languages_url":"https://api.github.com/repos/lumoslabs/txgh/languages","stargazers_url":"https://api.github.com/repos/lumoslabs/txgh/stargazers","contributors_url":"https://api.github.com/repos/lumoslabs/txgh/contributors","subscribers_url":"https://api.github.com/repos/lumoslabs/txgh/subscribers","subscription_url":"https://api.github.com/repos/lumoslabs/txgh/subscription","commits_url":"https://api.github.com/repos/lumoslabs/txgh/commits{/sha}","git_commits_url":"https://api.github.com/repos/lumoslabs/txgh/git/commits{/sha}","comments_url":"https://api.github.com/repos/lumoslabs/txgh/comments{/number}","issue_comment_url":"https://api.github.com/repos/lumoslabs/txgh/issues/comments{/number}","contents_url":"https://api.github.com/repos/lumoslabs/txgh/contents/{+path}","compare_url":"https://api.github.com/repos/lumoslabs/txgh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lumoslabs/txgh/merges","archive_url":"https://api.github.com/repos/lumoslabs/txgh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lumoslabs/txgh/downloads","issues_url":"https://api.github.com/repos/lumoslabs/txgh/issues{/number}","pulls_url":"https://api.github.com/repos/lumoslabs/txgh/pulls{/number}","milestones_url":"https://api.github.com/repos/lumoslabs/txgh/milestones{/number}","notifications_url":"https://api.github.com/repos/lumoslabs/txgh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lumoslabs/txgh/labels{/name}","releases_url":"https://api.github.com/repos/lumoslabs/txgh/releases{/id}","deployments_url":"https://api.github.com/repos/lumoslabs/txgh/deployments","created_at":"2016-01-08T19:54:08Z","updated_at":"2016-04-06T21:14:52Z","pushed_at":"2016-09-29T16:44:55Z","git_url":"git://github.com/lumoslabs/txgh.git","ssh_url":"git@github.com:lumoslabs/txgh.git","clone_url":"https://github.com/lumoslabs/txgh.git","svn_url":"https://github.com/lumoslabs/txgh","homepage":"","size":603,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"lumoslabs:master","ref":"master","sha":"2e6c481aa4a3876e4a88e4028120954167ddd52a","user":{"login":"lumoslabs","id":723646,"avatar_url":"https://avatars.githubusercontent.com/u/723646?v=3","gravatar_id":"","url":"https://api.github.com/users/lumoslabs","html_url":"https://github.com/lumoslabs","followers_url":"https://api.github.com/users/lumoslabs/followers","following_url":"https://api.github.com/users/lumoslabs/following{/other_user}","gists_url":"https://api.github.com/users/lumoslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/lumoslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumoslabs/subscriptions","organizations_url":"https://api.github.com/users/lumoslabs/orgs","repos_url":"https://api.github.com/users/lumoslabs/repos","events_url":"https://api.github.com/users/lumoslabs/events{/privacy}","received_events_url":"https://api.github.com/users/lumoslabs/received_events","type":"Organization","site_admin":false},"repo":{"id":49293078,"name":"txgh","full_name":"lumoslabs/txgh","owner":{"login":"lumoslabs","id":723646,"avatar_url":"https://avatars.githubusercontent.com/u/723646?v=3","gravatar_id":"","url":"https://api.github.com/users/lumoslabs","html_url":"https://github.com/lumoslabs","followers_url":"https://api.github.com/users/lumoslabs/followers","following_url":"https://api.github.com/users/lumoslabs/following{/other_user}","gists_url":"https://api.github.com/users/lumoslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/lumoslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumoslabs/subscriptions","organizations_url":"https://api.github.com/users/lumoslabs/orgs","repos_url":"https://api.github.com/users/lumoslabs/repos","events_url":"https://api.github.com/users/lumoslabs/events{/privacy}","received_events_url":"https://api.github.com/users/lumoslabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lumoslabs/txgh","description":"A server that automatically syncs translation resources between Github and Transifex.","fork":true,"url":"https://api.github.com/repos/lumoslabs/txgh","forks_url":"https://api.github.com/repos/lumoslabs/txgh/forks","keys_url":"https://api.github.com/repos/lumoslabs/txgh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lumoslabs/txgh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lumoslabs/txgh/teams","hooks_url":"https://api.github.com/repos/lumoslabs/txgh/hooks","issue_events_url":"https://api.github.com/repos/lumoslabs/txgh/issues/events{/number}","events_url":"https://api.github.com/repos/lumoslabs/txgh/events","assignees_url":"https://api.github.com/repos/lumoslabs/txgh/assignees{/user}","branches_url":"https://api.github.com/repos/lumoslabs/txgh/branches{/branch}","tags_url":"https://api.github.com/repos/lumoslabs/txgh/tags","blobs_url":"https://api.github.com/repos/lumoslabs/txgh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lumoslabs/txgh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lumoslabs/txgh/git/refs{/sha}","trees_url":"https://api.github.com/repos/lumoslabs/txgh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lumoslabs/txgh/statuses/{sha}","languages_url":"https://api.github.com/repos/lumoslabs/txgh/languages","stargazers_url":"https://api.github.com/repos/lumoslabs/txgh/stargazers","contributors_url":"https://api.github.com/repos/lumoslabs/txgh/contributors","subscribers_url":"https://api.github.com/repos/lumoslabs/txgh/subscribers","subscription_url":"https://api.github.com/repos/lumoslabs/txgh/subscription","commits_url":"https://api.github.com/repos/lumoslabs/txgh/commits{/sha}","git_commits_url":"https://api.github.com/repos/lumoslabs/txgh/git/commits{/sha}","comments_url":"https://api.github.com/repos/lumoslabs/txgh/comments{/number}","issue_comment_url":"https://api.github.com/repos/lumoslabs/txgh/issues/comments{/number}","contents_url":"https://api.github.com/repos/lumoslabs/txgh/contents/{+path}","compare_url":"https://api.github.com/repos/lumoslabs/txgh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lumoslabs/txgh/merges","archive_url":"https://api.github.com/repos/lumoslabs/txgh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lumoslabs/txgh/downloads","issues_url":"https://api.github.com/repos/lumoslabs/txgh/issues{/number}","pulls_url":"https://api.github.com/repos/lumoslabs/txgh/pulls{/number}","milestones_url":"https://api.github.com/repos/lumoslabs/txgh/milestones{/number}","notifications_url":"https://api.github.com/repos/lumoslabs/txgh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lumoslabs/txgh/labels{/name}","releases_url":"https://api.github.com/repos/lumoslabs/txgh/releases{/id}","deployments_url":"https://api.github.com/repos/lumoslabs/txgh/deployments","created_at":"2016-01-08T19:54:08Z","updated_at":"2016-04-06T21:14:52Z","pushed_at":"2016-09-29T16:44:55Z","git_url":"git://github.com/lumoslabs/txgh.git","ssh_url":"git@github.com:lumoslabs/txgh.git","clone_url":"https://github.com/lumoslabs/txgh.git","svn_url":"https://github.com/lumoslabs/txgh","homepage":"","size":603,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lumoslabs/txgh/pulls/53"},"html":{"href":"https://github.com/lumoslabs/txgh/pull/53"},"issue":{"href":"https://api.github.com/repos/lumoslabs/txgh/issues/53"},"comments":{"href":"https://api.github.com/repos/lumoslabs/txgh/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/lumoslabs/txgh/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/lumoslabs/txgh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lumoslabs/txgh/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/lumoslabs/txgh/statuses/055eccdacc3c335e4a53086ed68ecd2f771c23c7"}}}}
{"actor":{"display_login":"jdoconnor"}}