{"action":"created","comment":{"url":"https://api.github.com/repos/praekelt/molo/pulls/comments/56678026","id":56678026,"diff_hunk":"@@ -4,3 +4,18 @@ export function repo(name) {\n     name\n   };\n }\n+\n+\n+export function locale(d, i) {\n+  return {\n+    id: d.locale,\n+    name: d.name,\n+    isChosen: false,\n+\n+    // We receive this field as `is_main_language`, but since this field should\n+    // be set via the UI, we initialise it ourselves. We set the first locale\n+    // to `true` to provide a default, and set the rest of the locales to","path":"client/src/views/git-importer/api/parse.js","position":14,"original_position":14,"commit_id":"b750bff630bcf9b335c74a64dc25068b1b1a1681","original_commit_id":"b750bff630bcf9b335c74a64dc25068b1b1a1681","user":{"login":"miltontony","id":623417,"avatar_url":"https://avatars.githubusercontent.com/u/623417?v=3","gravatar_id":"","url":"https://api.github.com/users/miltontony","html_url":"https://github.com/miltontony","followers_url":"https://api.github.com/users/miltontony/followers","following_url":"https://api.github.com/users/miltontony/following{/other_user}","gists_url":"https://api.github.com/users/miltontony/gists{/gist_id}","starred_url":"https://api.github.com/users/miltontony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miltontony/subscriptions","organizations_url":"https://api.github.com/users/miltontony/orgs","repos_url":"https://api.github.com/users/miltontony/repos","events_url":"https://api.github.com/users/miltontony/events{/privacy}","received_events_url":"https://api.github.com/users/miltontony/received_events","type":"User","site_admin":false},"body":"I have some doubts about this, but let's see the UI in action and re-evaluate","created_at":"2016-03-18T15:55:08Z","updated_at":"2016-03-18T15:55:08Z","html_url":"https://github.com/praekelt/molo/pull/94#discussion_r56678026","pull_request_url":"https://api.github.com/repos/praekelt/molo/pulls/94","_links":{"self":{"href":"https://api.github.com/repos/praekelt/molo/pulls/comments/56678026"},"html":{"href":"https://github.com/praekelt/molo/pull/94#discussion_r56678026"},"pull_request":{"href":"https://api.github.com/repos/praekelt/molo/pulls/94"}}},"pull_request":{"url":"https://api.github.com/repos/praekelt/molo/pulls/94","id":63353473,"html_url":"https://github.com/praekelt/molo/pull/94","diff_url":"https://github.com/praekelt/molo/pull/94.diff","patch_url":"https://github.com/praekelt/molo/pull/94.patch","issue_url":"https://api.github.com/repos/praekelt/molo/issues/94","number":94,"state":"open","locked":false,"title":"Hook import UI up to api endpoint for retrieving repo languages","user":{"login":"justinvdm","id":1731223,"avatar_url":"https://avatars.githubusercontent.com/u/1731223?v=3","gravatar_id":"","url":"https://api.github.com/users/justinvdm","html_url":"https://github.com/justinvdm","followers_url":"https://api.github.com/users/justinvdm/followers","following_url":"https://api.github.com/users/justinvdm/following{/other_user}","gists_url":"https://api.github.com/users/justinvdm/gists{/gist_id}","starred_url":"https://api.github.com/users/justinvdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinvdm/subscriptions","organizations_url":"https://api.github.com/users/justinvdm/orgs","repos_url":"https://api.github.com/users/justinvdm/repos","events_url":"https://api.github.com/users/justinvdm/events{/privacy}","received_events_url":"https://api.github.com/users/justinvdm/received_events","type":"User","site_admin":false},"body":"Part two of #92 (after #93).","created_at":"2016-03-18T10:23:20Z","updated_at":"2016-03-18T15:55:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5660c4b18b7c891d71f68b6ed21b491a44298fc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/praekelt/molo/pulls/94/commits","review_comments_url":"https://api.github.com/repos/praekelt/molo/pulls/94/comments","review_comment_url":"https://api.github.com/repos/praekelt/molo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/praekelt/molo/issues/94/comments","statuses_url":"https://api.github.com/repos/praekelt/molo/statuses/b750bff630bcf9b335c74a64dc25068b1b1a1681","head":{"label":"praekelt:feature/issue-94-hook-import-ui-up-to-api-endpoint-for-retrieving-repo-languages","ref":"feature/issue-94-hook-import-ui-up-to-api-endpoint-for-retrieving-repo-languages","sha":"b750bff630bcf9b335c74a64dc25068b1b1a1681","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":36491915,"name":"molo","full_name":"praekelt/molo","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/molo","description":"Molo is a set of tools for publishing low end mobi sites with a community focus.","fork":false,"url":"https://api.github.com/repos/praekelt/molo","forks_url":"https://api.github.com/repos/praekelt/molo/forks","keys_url":"https://api.github.com/repos/praekelt/molo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/molo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/molo/teams","hooks_url":"https://api.github.com/repos/praekelt/molo/hooks","issue_events_url":"https://api.github.com/repos/praekelt/molo/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/molo/events","assignees_url":"https://api.github.com/repos/praekelt/molo/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/molo/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/molo/tags","blobs_url":"https://api.github.com/repos/praekelt/molo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/molo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/molo/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/molo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/molo/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/molo/languages","stargazers_url":"https://api.github.com/repos/praekelt/molo/stargazers","contributors_url":"https://api.github.com/repos/praekelt/molo/contributors","subscribers_url":"https://api.github.com/repos/praekelt/molo/subscribers","subscription_url":"https://api.github.com/repos/praekelt/molo/subscription","commits_url":"https://api.github.com/repos/praekelt/molo/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/molo/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/molo/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/molo/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/molo/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/molo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/molo/merges","archive_url":"https://api.github.com/repos/praekelt/molo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/molo/downloads","issues_url":"https://api.github.com/repos/praekelt/molo/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/molo/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/molo/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/molo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/molo/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/molo/releases{/id}","deployments_url":"https://api.github.com/repos/praekelt/molo/deployments","created_at":"2015-05-29T08:38:53Z","updated_at":"2016-03-09T12:32:42Z","pushed_at":"2016-03-18T11:14:28Z","git_url":"git://github.com/praekelt/molo.git","ssh_url":"git@github.com:praekelt/molo.git","clone_url":"https://github.com/praekelt/molo.git","svn_url":"https://github.com/praekelt/molo","homepage":"http://molo.rtfd.org","size":4590,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":6,"default_branch":"develop"}},"base":{"label":"praekelt:develop","ref":"develop","sha":"2c7ec6f706abd78b744bc2b58ef8b73cb317361d","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":36491915,"name":"molo","full_name":"praekelt/molo","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/molo","description":"Molo is a set of tools for publishing low end mobi sites with a community focus.","fork":false,"url":"https://api.github.com/repos/praekelt/molo","forks_url":"https://api.github.com/repos/praekelt/molo/forks","keys_url":"https://api.github.com/repos/praekelt/molo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/molo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/molo/teams","hooks_url":"https://api.github.com/repos/praekelt/molo/hooks","issue_events_url":"https://api.github.com/repos/praekelt/molo/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/molo/events","assignees_url":"https://api.github.com/repos/praekelt/molo/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/molo/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/molo/tags","blobs_url":"https://api.github.com/repos/praekelt/molo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/molo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/molo/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/molo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/molo/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/molo/languages","stargazers_url":"https://api.github.com/repos/praekelt/molo/stargazers","contributors_url":"https://api.github.com/repos/praekelt/molo/contributors","subscribers_url":"https://api.github.com/repos/praekelt/molo/subscribers","subscription_url":"https://api.github.com/repos/praekelt/molo/subscription","commits_url":"https://api.github.com/repos/praekelt/molo/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/molo/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/molo/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/molo/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/molo/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/molo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/molo/merges","archive_url":"https://api.github.com/repos/praekelt/molo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/molo/downloads","issues_url":"https://api.github.com/repos/praekelt/molo/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/molo/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/molo/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/molo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/molo/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/molo/releases{/id}","deployments_url":"https://api.github.com/repos/praekelt/molo/deployments","created_at":"2015-05-29T08:38:53Z","updated_at":"2016-03-09T12:32:42Z","pushed_at":"2016-03-18T11:14:28Z","git_url":"git://github.com/praekelt/molo.git","ssh_url":"git@github.com:praekelt/molo.git","clone_url":"https://github.com/praekelt/molo.git","svn_url":"https://github.com/praekelt/molo","homepage":"http://molo.rtfd.org","size":4590,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/praekelt/molo/pulls/94"},"html":{"href":"https://github.com/praekelt/molo/pull/94"},"issue":{"href":"https://api.github.com/repos/praekelt/molo/issues/94"},"comments":{"href":"https://api.github.com/repos/praekelt/molo/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/praekelt/molo/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/praekelt/molo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/praekelt/molo/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/praekelt/molo/statuses/b750bff630bcf9b335c74a64dc25068b1b1a1681"}}}}