{"action":"created","comment":{"url":"https://api.github.com/repos/shoutem/cli/pulls/comments/226310490","pull_request_review_id":166100722,"id":226310490,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjMxMDQ5MA==","diff_hunk":"@@ -55,6 +55,11 @@ export async function getExtension(canonicalName) {\n   return await jsonApi.get(url);\n }\n \n+export async function getPlatform(id) {\n+  const url = extensionManagerUri.clone().segment(`/v1/platforms/${id}`);\n+  return await jsonApi.get(url);\n+}\n+","path":"src/clients/extension-manager.js","position":33,"original_position":33,"commit_id":"841ccfc767ae3e31bbc174d18521330fb8d385ea","original_commit_id":"63a791ae9865f42ec2a0ee4cd5160f13c1085b9a","user":{"login":"Hardsix","id":2489402,"node_id":"MDQ6VXNlcjI0ODk0MDI=","avatar_url":"https://avatars0.githubusercontent.com/u/2489402?v=4","gravatar_id":"","url":"https://api.github.com/users/Hardsix","html_url":"https://github.com/Hardsix","followers_url":"https://api.github.com/users/Hardsix/followers","following_url":"https://api.github.com/users/Hardsix/following{/other_user}","gists_url":"https://api.github.com/users/Hardsix/gists{/gist_id}","starred_url":"https://api.github.com/users/Hardsix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hardsix/subscriptions","organizations_url":"https://api.github.com/users/Hardsix/orgs","repos_url":"https://api.github.com/users/Hardsix/repos","events_url":"https://api.github.com/users/Hardsix/events{/privacy}","received_events_url":"https://api.github.com/users/Hardsix/received_events","type":"User","site_admin":false},"body":"I'd just like to add that I believe we should not have an await in a return statement because it's harder to debug. We should save the return value of the await into a const, and then return that const.","created_at":"2018-10-18T13:46:09Z","updated_at":"2018-10-18T13:46:09Z","html_url":"https://github.com/shoutem/cli/pull/49#discussion_r226310490","pull_request_url":"https://api.github.com/repos/shoutem/cli/pulls/49","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/shoutem/cli/pulls/comments/226310490"},"html":{"href":"https://github.com/shoutem/cli/pull/49#discussion_r226310490"},"pull_request":{"href":"https://api.github.com/repos/shoutem/cli/pulls/49"}},"in_reply_to_id":226264982},"pull_request":{"url":"https://api.github.com/repos/shoutem/cli/pulls/49","id":222935612,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyOTM1NjEy","html_url":"https://github.com/shoutem/cli/pull/49","diff_url":"https://github.com/shoutem/cli/pull/49.diff","patch_url":"https://github.com/shoutem/cli/pull/49.patch","issue_url":"https://api.github.com/repos/shoutem/cli/issues/49","number":49,"state":"open","locked":false,"title":"Feature/seext 6561 custom platforms cli","user":{"login":"TopHatCroat","id":9058532,"node_id":"MDQ6VXNlcjkwNTg1MzI=","avatar_url":"https://avatars1.githubusercontent.com/u/9058532?v=4","gravatar_id":"","url":"https://api.github.com/users/TopHatCroat","html_url":"https://github.com/TopHatCroat","followers_url":"https://api.github.com/users/TopHatCroat/followers","following_url":"https://api.github.com/users/TopHatCroat/following{/other_user}","gists_url":"https://api.github.com/users/TopHatCroat/gists{/gist_id}","starred_url":"https://api.github.com/users/TopHatCroat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TopHatCroat/subscriptions","organizations_url":"https://api.github.com/users/TopHatCroat/orgs","repos_url":"https://api.github.com/users/TopHatCroat/repos","events_url":"https://api.github.com/users/TopHatCroat/events{/privacy}","received_events_url":"https://api.github.com/users/TopHatCroat/received_events","type":"User","site_admin":false},"body":"Allow to create a new platform from a URL to donwload a zip file or directly from an app folder.\r\n\r\nTODO: Add `.shoutemignore` file in platform repo with initial content like so:\r\n```\r\n# we don't neet it\r\n.git\r\n# node modules will get installed during the build process of the app\r\nnode_modules\r\n# Shoutem platform should not come with any extensions preinstalled\r\nextensions\r\n```","created_at":"2018-10-15T14:52:50Z","updated_at":"2018-10-18T13:46:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"165785135cf44e4871c27ee458f0a21e180270b7","assignee":null,"assignees":[],"requested_reviewers":[{"login":"dodsky","id":1985596,"node_id":"MDQ6VXNlcjE5ODU1OTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1985596?v=4","gravatar_id":"","url":"https://api.github.com/users/dodsky","html_url":"https://github.com/dodsky","followers_url":"https://api.github.com/users/dodsky/followers","following_url":"https://api.github.com/users/dodsky/following{/other_user}","gists_url":"https://api.github.com/users/dodsky/gists{/gist_id}","starred_url":"https://api.github.com/users/dodsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dodsky/subscriptions","organizations_url":"https://api.github.com/users/dodsky/orgs","repos_url":"https://api.github.com/users/dodsky/repos","events_url":"https://api.github.com/users/dodsky/events{/privacy}","received_events_url":"https://api.github.com/users/dodsky/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/shoutem/cli/pulls/49/commits","review_comments_url":"https://api.github.com/repos/shoutem/cli/pulls/49/comments","review_comment_url":"https://api.github.com/repos/shoutem/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shoutem/cli/issues/49/comments","statuses_url":"https://api.github.com/repos/shoutem/cli/statuses/841ccfc767ae3e31bbc174d18521330fb8d385ea","head":{"label":"shoutem:feature/SEEXT-6561_custom_platforms_cli","ref":"feature/SEEXT-6561_custom_platforms_cli","sha":"841ccfc767ae3e31bbc174d18521330fb8d385ea","user":{"login":"shoutem","id":962929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk2MjkyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/962929?v=4","gravatar_id":"","url":"https://api.github.com/users/shoutem","html_url":"https://github.com/shoutem","followers_url":"https://api.github.com/users/shoutem/followers","following_url":"https://api.github.com/users/shoutem/following{/other_user}","gists_url":"https://api.github.com/users/shoutem/gists{/gist_id}","starred_url":"https://api.github.com/users/shoutem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoutem/subscriptions","organizations_url":"https://api.github.com/users/shoutem/orgs","repos_url":"https://api.github.com/users/shoutem/repos","events_url":"https://api.github.com/users/shoutem/events{/privacy}","received_events_url":"https://api.github.com/users/shoutem/received_events","type":"Organization","site_admin":false},"repo":{"id":77066987,"node_id":"MDEwOlJlcG9zaXRvcnk3NzA2Njk4Nw==","name":"cli","full_name":"shoutem/cli","private":false,"owner":{"login":"shoutem","id":962929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk2MjkyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/962929?v=4","gravatar_id":"","url":"https://api.github.com/users/shoutem","html_url":"https://github.com/shoutem","followers_url":"https://api.github.com/users/shoutem/followers","following_url":"https://api.github.com/users/shoutem/following{/other_user}","gists_url":"https://api.github.com/users/shoutem/gists{/gist_id}","starred_url":"https://api.github.com/users/shoutem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoutem/subscriptions","organizations_url":"https://api.github.com/users/shoutem/orgs","repos_url":"https://api.github.com/users/shoutem/repos","events_url":"https://api.github.com/users/shoutem/events{/privacy}","received_events_url":"https://api.github.com/users/shoutem/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/shoutem/cli","description":"Shoutem CLI is a tool which helps you build Shoutem extensions faster","fork":false,"url":"https://api.github.com/repos/shoutem/cli","forks_url":"https://api.github.com/repos/shoutem/cli/forks","keys_url":"https://api.github.com/repos/shoutem/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shoutem/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shoutem/cli/teams","hooks_url":"https://api.github.com/repos/shoutem/cli/hooks","issue_events_url":"https://api.github.com/repos/shoutem/cli/issues/events{/number}","events_url":"https://api.github.com/repos/shoutem/cli/events","assignees_url":"https://api.github.com/repos/shoutem/cli/assignees{/user}","branches_url":"https://api.github.com/repos/shoutem/cli/branches{/branch}","tags_url":"https://api.github.com/repos/shoutem/cli/tags","blobs_url":"https://api.github.com/repos/shoutem/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shoutem/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shoutem/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/shoutem/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shoutem/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/shoutem/cli/languages","stargazers_url":"https://api.github.com/repos/shoutem/cli/stargazers","contributors_url":"https://api.github.com/repos/shoutem/cli/contributors","subscribers_url":"https://api.github.com/repos/shoutem/cli/subscribers","subscription_url":"https://api.github.com/repos/shoutem/cli/subscription","commits_url":"https://api.github.com/repos/shoutem/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/shoutem/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/shoutem/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/shoutem/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/shoutem/cli/contents/{+path}","compare_url":"https://api.github.com/repos/shoutem/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shoutem/cli/merges","archive_url":"https://api.github.com/repos/shoutem/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shoutem/cli/downloads","issues_url":"https://api.github.com/repos/shoutem/cli/issues{/number}","pulls_url":"https://api.github.com/repos/shoutem/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/shoutem/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/shoutem/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shoutem/cli/labels{/name}","releases_url":"https://api.github.com/repos/shoutem/cli/releases{/id}","deployments_url":"https://api.github.com/repos/shoutem/cli/deployments","created_at":"2016-12-21T16:15:40Z","updated_at":"2018-08-07T08:04:31Z","pushed_at":"2018-10-18T13:28:02Z","git_url":"git://github.com/shoutem/cli.git","ssh_url":"git@github.com:shoutem/cli.git","clone_url":"https://github.com/shoutem/cli.git","svn_url":"https://github.com/shoutem/cli","homepage":null,"size":701,"stargazers_count":23,"watchers_count":23,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3,"open_issues":10,"watchers":23,"default_branch":"master"}},"base":{"label":"shoutem:develop","ref":"develop","sha":"381eba1fb4439783fb7025da6e756c4e7f17d9c1","user":{"login":"shoutem","id":962929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk2MjkyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/962929?v=4","gravatar_id":"","url":"https://api.github.com/users/shoutem","html_url":"https://github.com/shoutem","followers_url":"https://api.github.com/users/shoutem/followers","following_url":"https://api.github.com/users/shoutem/following{/other_user}","gists_url":"https://api.github.com/users/shoutem/gists{/gist_id}","starred_url":"https://api.github.com/users/shoutem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoutem/subscriptions","organizations_url":"https://api.github.com/users/shoutem/orgs","repos_url":"https://api.github.com/users/shoutem/repos","events_url":"https://api.github.com/users/shoutem/events{/privacy}","received_events_url":"https://api.github.com/users/shoutem/received_events","type":"Organization","site_admin":false},"repo":{"id":77066987,"node_id":"MDEwOlJlcG9zaXRvcnk3NzA2Njk4Nw==","name":"cli","full_name":"shoutem/cli","private":false,"owner":{"login":"shoutem","id":962929,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk2MjkyOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/962929?v=4","gravatar_id":"","url":"https://api.github.com/users/shoutem","html_url":"https://github.com/shoutem","followers_url":"https://api.github.com/users/shoutem/followers","following_url":"https://api.github.com/users/shoutem/following{/other_user}","gists_url":"https://api.github.com/users/shoutem/gists{/gist_id}","starred_url":"https://api.github.com/users/shoutem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoutem/subscriptions","organizations_url":"https://api.github.com/users/shoutem/orgs","repos_url":"https://api.github.com/users/shoutem/repos","events_url":"https://api.github.com/users/shoutem/events{/privacy}","received_events_url":"https://api.github.com/users/shoutem/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/shoutem/cli","description":"Shoutem CLI is a tool which helps you build Shoutem extensions faster","fork":false,"url":"https://api.github.com/repos/shoutem/cli","forks_url":"https://api.github.com/repos/shoutem/cli/forks","keys_url":"https://api.github.com/repos/shoutem/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shoutem/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shoutem/cli/teams","hooks_url":"https://api.github.com/repos/shoutem/cli/hooks","issue_events_url":"https://api.github.com/repos/shoutem/cli/issues/events{/number}","events_url":"https://api.github.com/repos/shoutem/cli/events","assignees_url":"https://api.github.com/repos/shoutem/cli/assignees{/user}","branches_url":"https://api.github.com/repos/shoutem/cli/branches{/branch}","tags_url":"https://api.github.com/repos/shoutem/cli/tags","blobs_url":"https://api.github.com/repos/shoutem/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shoutem/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shoutem/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/shoutem/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shoutem/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/shoutem/cli/languages","stargazers_url":"https://api.github.com/repos/shoutem/cli/stargazers","contributors_url":"https://api.github.com/repos/shoutem/cli/contributors","subscribers_url":"https://api.github.com/repos/shoutem/cli/subscribers","subscription_url":"https://api.github.com/repos/shoutem/cli/subscription","commits_url":"https://api.github.com/repos/shoutem/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/shoutem/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/shoutem/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/shoutem/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/shoutem/cli/contents/{+path}","compare_url":"https://api.github.com/repos/shoutem/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shoutem/cli/merges","archive_url":"https://api.github.com/repos/shoutem/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shoutem/cli/downloads","issues_url":"https://api.github.com/repos/shoutem/cli/issues{/number}","pulls_url":"https://api.github.com/repos/shoutem/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/shoutem/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/shoutem/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shoutem/cli/labels{/name}","releases_url":"https://api.github.com/repos/shoutem/cli/releases{/id}","deployments_url":"https://api.github.com/repos/shoutem/cli/deployments","created_at":"2016-12-21T16:15:40Z","updated_at":"2018-08-07T08:04:31Z","pushed_at":"2018-10-18T13:28:02Z","git_url":"git://github.com/shoutem/cli.git","ssh_url":"git@github.com:shoutem/cli.git","clone_url":"https://github.com/shoutem/cli.git","svn_url":"https://github.com/shoutem/cli","homepage":null,"size":701,"stargazers_count":23,"watchers_count":23,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3,"open_issues":10,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shoutem/cli/pulls/49"},"html":{"href":"https://github.com/shoutem/cli/pull/49"},"issue":{"href":"https://api.github.com/repos/shoutem/cli/issues/49"},"comments":{"href":"https://api.github.com/repos/shoutem/cli/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/shoutem/cli/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/shoutem/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shoutem/cli/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/shoutem/cli/statuses/841ccfc767ae3e31bbc174d18521330fb8d385ea"}},"author_association":"NONE"}}
{"actor":{"display_login":"Hardsix"}}