{"action":"created","comment":{"url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls/comments/192332763","pull_request_review_id":125089073,"id":192332763,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjMzMjc2Mw==","diff_hunk":"@@ -1,9 +1,174 @@\n-import { NativeModules, Platform } from 'react-native';\n+import { NativeModules, NetInfo, Platform } from 'react-native';\n import ReactNativeFS from 'react-native-fs';\n+\n const { RNAppUpgrade } = NativeModules;\n \n+let jobId = -1;\n+const iOS_APP_URL = 'https://itunes.apple.com/lookup?id=';","path":"index.js","position":8,"original_position":8,"commit_id":"b4a0154327631521e811775af3b2d5fcab9f8c8b","original_commit_id":"b4a0154327631521e811775af3b2d5fcab9f8c8b","user":{"login":"hstarorg","id":4043284,"node_id":"MDQ6VXNlcjQwNDMyODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4043284?v=4","gravatar_id":"","url":"https://api.github.com/users/hstarorg","html_url":"https://github.com/hstarorg","followers_url":"https://api.github.com/users/hstarorg/followers","following_url":"https://api.github.com/users/hstarorg/following{/other_user}","gists_url":"https://api.github.com/users/hstarorg/gists{/gist_id}","starred_url":"https://api.github.com/users/hstarorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hstarorg/subscriptions","organizations_url":"https://api.github.com/users/hstarorg/orgs","repos_url":"https://api.github.com/users/hstarorg/repos","events_url":"https://api.github.com/users/hstarorg/events{/privacy}","received_events_url":"https://api.github.com/users/hstarorg/received_events","type":"User","site_admin":false},"body":"命名不是很准确，建议 `DEFAULT_IOS_APP_LOOKUP_URL`","created_at":"2018-06-01T08:44:06Z","updated_at":"2018-06-01T08:44:06Z","html_url":"https://github.com/react-native-org/react-native-appupgrade/pull/1#discussion_r192332763","pull_request_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls/1","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls/comments/192332763"},"html":{"href":"https://github.com/react-native-org/react-native-appupgrade/pull/1#discussion_r192332763"},"pull_request":{"href":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls/1","id":191968881,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxOTY4ODgx","html_url":"https://github.com/react-native-org/react-native-appupgrade/pull/1","diff_url":"https://github.com/react-native-org/react-native-appupgrade/pull/1.diff","patch_url":"https://github.com/react-native-org/react-native-appupgrade/pull/1.patch","issue_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/issues/1","number":1,"state":"open","locked":false,"title":"Add update params","user":{"login":"SunnyEver0","id":20034835,"node_id":"MDQ6VXNlcjIwMDM0ODM1","avatar_url":"https://avatars1.githubusercontent.com/u/20034835?v=4","gravatar_id":"","url":"https://api.github.com/users/SunnyEver0","html_url":"https://github.com/SunnyEver0","followers_url":"https://api.github.com/users/SunnyEver0/followers","following_url":"https://api.github.com/users/SunnyEver0/following{/other_user}","gists_url":"https://api.github.com/users/SunnyEver0/gists{/gist_id}","starred_url":"https://api.github.com/users/SunnyEver0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunnyEver0/subscriptions","organizations_url":"https://api.github.com/users/SunnyEver0/orgs","repos_url":"https://api.github.com/users/SunnyEver0/repos","events_url":"https://api.github.com/users/SunnyEver0/events{/privacy}","received_events_url":"https://api.github.com/users/SunnyEver0/received_events","type":"User","site_admin":false},"body":"提交的功能点\r\n1. 完成android后台默认更新功能\r\n    需要在server设置forceUpdate为true\r\n2.完成iOS跳转AppStore更新功能","created_at":"2018-06-01T08:39:18Z","updated_at":"2018-06-01T08:44:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eab801a6ea5242e821b6dc1cd6406c93225ef1d4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls/1/commits","review_comments_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls/1/comments","review_comment_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls/comments{/number}","comments_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/issues/1/comments","statuses_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/statuses/b4a0154327631521e811775af3b2d5fcab9f8c8b","head":{"label":"react-native-org:add_update_params","ref":"add_update_params","sha":"b4a0154327631521e811775af3b2d5fcab9f8c8b","user":{"login":"react-native-org","id":39788021,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5Nzg4MDIx","avatar_url":"https://avatars2.githubusercontent.com/u/39788021?v=4","gravatar_id":"","url":"https://api.github.com/users/react-native-org","html_url":"https://github.com/react-native-org","followers_url":"https://api.github.com/users/react-native-org/followers","following_url":"https://api.github.com/users/react-native-org/following{/other_user}","gists_url":"https://api.github.com/users/react-native-org/gists{/gist_id}","starred_url":"https://api.github.com/users/react-native-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-native-org/subscriptions","organizations_url":"https://api.github.com/users/react-native-org/orgs","repos_url":"https://api.github.com/users/react-native-org/repos","events_url":"https://api.github.com/users/react-native-org/events{/privacy}","received_events_url":"https://api.github.com/users/react-native-org/received_events","type":"Organization","site_admin":false},"repo":{"id":135534030,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU1MzQwMzA=","name":"react-native-appupgrade","full_name":"react-native-org/react-native-appupgrade","owner":{"login":"react-native-org","id":39788021,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5Nzg4MDIx","avatar_url":"https://avatars2.githubusercontent.com/u/39788021?v=4","gravatar_id":"","url":"https://api.github.com/users/react-native-org","html_url":"https://github.com/react-native-org","followers_url":"https://api.github.com/users/react-native-org/followers","following_url":"https://api.github.com/users/react-native-org/following{/other_user}","gists_url":"https://api.github.com/users/react-native-org/gists{/gist_id}","starred_url":"https://api.github.com/users/react-native-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-native-org/subscriptions","organizations_url":"https://api.github.com/users/react-native-org/orgs","repos_url":"https://api.github.com/users/react-native-org/repos","events_url":"https://api.github.com/users/react-native-org/events{/privacy}","received_events_url":"https://api.github.com/users/react-native-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/react-native-org/react-native-appupgrade","description":"Easy to upgrade your react-native app","fork":false,"url":"https://api.github.com/repos/react-native-org/react-native-appupgrade","forks_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/forks","keys_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/teams","hooks_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/hooks","issue_events_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/issues/events{/number}","events_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/events","assignees_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/assignees{/user}","branches_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/branches{/branch}","tags_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/tags","blobs_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/git/refs{/sha}","trees_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/statuses/{sha}","languages_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/languages","stargazers_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/stargazers","contributors_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/contributors","subscribers_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/subscribers","subscription_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/subscription","commits_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/commits{/sha}","git_commits_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/git/commits{/sha}","comments_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/comments{/number}","issue_comment_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/issues/comments{/number}","contents_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/contents/{+path}","compare_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/merges","archive_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/downloads","issues_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/issues{/number}","pulls_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls{/number}","milestones_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/milestones{/number}","notifications_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/labels{/name}","releases_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/releases{/id}","deployments_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/deployments","created_at":"2018-05-31T05:04:33Z","updated_at":"2018-05-31T08:49:55Z","pushed_at":"2018-06-01T08:39:18Z","git_url":"git://github.com/react-native-org/react-native-appupgrade.git","ssh_url":"git@github.com:react-native-org/react-native-appupgrade.git","clone_url":"https://github.com/react-native-org/react-native-appupgrade.git","svn_url":"https://github.com/react-native-org/react-native-appupgrade","homepage":null,"size":45,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"react-native-org:master","ref":"master","sha":"8c7c5768f7bce3343f87830dd0084fe46f5e65a6","user":{"login":"react-native-org","id":39788021,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5Nzg4MDIx","avatar_url":"https://avatars2.githubusercontent.com/u/39788021?v=4","gravatar_id":"","url":"https://api.github.com/users/react-native-org","html_url":"https://github.com/react-native-org","followers_url":"https://api.github.com/users/react-native-org/followers","following_url":"https://api.github.com/users/react-native-org/following{/other_user}","gists_url":"https://api.github.com/users/react-native-org/gists{/gist_id}","starred_url":"https://api.github.com/users/react-native-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-native-org/subscriptions","organizations_url":"https://api.github.com/users/react-native-org/orgs","repos_url":"https://api.github.com/users/react-native-org/repos","events_url":"https://api.github.com/users/react-native-org/events{/privacy}","received_events_url":"https://api.github.com/users/react-native-org/received_events","type":"Organization","site_admin":false},"repo":{"id":135534030,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU1MzQwMzA=","name":"react-native-appupgrade","full_name":"react-native-org/react-native-appupgrade","owner":{"login":"react-native-org","id":39788021,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5Nzg4MDIx","avatar_url":"https://avatars2.githubusercontent.com/u/39788021?v=4","gravatar_id":"","url":"https://api.github.com/users/react-native-org","html_url":"https://github.com/react-native-org","followers_url":"https://api.github.com/users/react-native-org/followers","following_url":"https://api.github.com/users/react-native-org/following{/other_user}","gists_url":"https://api.github.com/users/react-native-org/gists{/gist_id}","starred_url":"https://api.github.com/users/react-native-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-native-org/subscriptions","organizations_url":"https://api.github.com/users/react-native-org/orgs","repos_url":"https://api.github.com/users/react-native-org/repos","events_url":"https://api.github.com/users/react-native-org/events{/privacy}","received_events_url":"https://api.github.com/users/react-native-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/react-native-org/react-native-appupgrade","description":"Easy to upgrade your react-native app","fork":false,"url":"https://api.github.com/repos/react-native-org/react-native-appupgrade","forks_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/forks","keys_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/teams","hooks_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/hooks","issue_events_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/issues/events{/number}","events_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/events","assignees_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/assignees{/user}","branches_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/branches{/branch}","tags_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/tags","blobs_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/git/refs{/sha}","trees_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/statuses/{sha}","languages_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/languages","stargazers_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/stargazers","contributors_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/contributors","subscribers_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/subscribers","subscription_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/subscription","commits_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/commits{/sha}","git_commits_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/git/commits{/sha}","comments_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/comments{/number}","issue_comment_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/issues/comments{/number}","contents_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/contents/{+path}","compare_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/merges","archive_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/downloads","issues_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/issues{/number}","pulls_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls{/number}","milestones_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/milestones{/number}","notifications_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/labels{/name}","releases_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/releases{/id}","deployments_url":"https://api.github.com/repos/react-native-org/react-native-appupgrade/deployments","created_at":"2018-05-31T05:04:33Z","updated_at":"2018-05-31T08:49:55Z","pushed_at":"2018-06-01T08:39:18Z","git_url":"git://github.com/react-native-org/react-native-appupgrade.git","ssh_url":"git@github.com:react-native-org/react-native-appupgrade.git","clone_url":"https://github.com/react-native-org/react-native-appupgrade.git","svn_url":"https://github.com/react-native-org/react-native-appupgrade","homepage":null,"size":45,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls/1"},"html":{"href":"https://github.com/react-native-org/react-native-appupgrade/pull/1"},"issue":{"href":"https://api.github.com/repos/react-native-org/react-native-appupgrade/issues/1"},"comments":{"href":"https://api.github.com/repos/react-native-org/react-native-appupgrade/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/react-native-org/react-native-appupgrade/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/react-native-org/react-native-appupgrade/statuses/b4a0154327631521e811775af3b2d5fcab9f8c8b"}},"author_association":"NONE"}}
{"actor":{"display_login":"hstarorg"}}