{"action":"opened","number":9157,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/9157","id":79689417,"html_url":"https://github.com/facebook/react-native/pull/9157","diff_url":"https://github.com/facebook/react-native/pull/9157.diff","patch_url":"https://github.com/facebook/react-native/pull/9157.patch","issue_url":"https://api.github.com/repos/facebook/react-native/issues/9157","number":9157,"state":"open","locked":false,"title":"Add pre/postunlink","user":{"login":"geof90","id":8598682,"avatar_url":"https://avatars.githubusercontent.com/u/8598682?v=3","gravatar_id":"","url":"https://api.github.com/users/geof90","html_url":"https://github.com/geof90","followers_url":"https://api.github.com/users/geof90/followers","following_url":"https://api.github.com/users/geof90/following{/other_user}","gists_url":"https://api.github.com/users/geof90/gists{/gist_id}","starred_url":"https://api.github.com/users/geof90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geof90/subscriptions","organizations_url":"https://api.github.com/users/geof90/orgs","repos_url":"https://api.github.com/users/geof90/repos","events_url":"https://api.github.com/users/geof90/events{/privacy}","received_events_url":"https://api.github.com/users/geof90/received_events","type":"User","site_admin":false},"body":"An attempt to address https://github.com/facebook/react-native/issues/9156.\r\n\r\ncc @grabbou @Kureev \r\n\r\n**Test plan (required)**\r\n\r\n1. Added the following to the `package.json` of a `react-native-plugin`\r\n\r\n```\r\n  \"rnpm\": {\r\n    \"commands\": {\r\n      \"postlink\": \"node node_modules/react-native-plugin/scripts/postlink\",\r\n      \"postunlink\": \"node node_modules/react-native-plugin/scripts/postunlink\"\r\n    }\r\n  }\r\n```\r\n\r\n2. Added two files, `scripts/postlink.js` and `scripts/postunlink.js` to the plugin. Each of them simply logs a string to the console.\r\n\r\n3. Ran `react-native link react-native-plugin` and `react-native unlink react-native-plugin` to verify that those logs get printed. ","created_at":"2016-08-02T07:42:28Z","updated_at":"2016-08-02T07:42:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/facebook/react-native/pulls/9157/commits","review_comments_url":"https://api.github.com/repos/facebook/react-native/pulls/9157/comments","review_comment_url":"https://api.github.com/repos/facebook/react-native/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/9157/comments","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/024d623f035e1317ef5c02ebe709d3858cd06f6c","head":{"label":"geof90:add-pre/postunlink","ref":"add-pre/postunlink","sha":"024d623f035e1317ef5c02ebe709d3858cd06f6c","user":{"login":"geof90","id":8598682,"avatar_url":"https://avatars.githubusercontent.com/u/8598682?v=3","gravatar_id":"","url":"https://api.github.com/users/geof90","html_url":"https://github.com/geof90","followers_url":"https://api.github.com/users/geof90/followers","following_url":"https://api.github.com/users/geof90/following{/other_user}","gists_url":"https://api.github.com/users/geof90/gists{/gist_id}","starred_url":"https://api.github.com/users/geof90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geof90/subscriptions","organizations_url":"https://api.github.com/users/geof90/orgs","repos_url":"https://api.github.com/users/geof90/repos","events_url":"https://api.github.com/users/geof90/events{/privacy}","received_events_url":"https://api.github.com/users/geof90/received_events","type":"User","site_admin":false},"repo":{"id":59685832,"name":"react-native-1","full_name":"geof90/react-native-1","owner":{"login":"geof90","id":8598682,"avatar_url":"https://avatars.githubusercontent.com/u/8598682?v=3","gravatar_id":"","url":"https://api.github.com/users/geof90","html_url":"https://github.com/geof90","followers_url":"https://api.github.com/users/geof90/followers","following_url":"https://api.github.com/users/geof90/following{/other_user}","gists_url":"https://api.github.com/users/geof90/gists{/gist_id}","starred_url":"https://api.github.com/users/geof90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geof90/subscriptions","organizations_url":"https://api.github.com/users/geof90/orgs","repos_url":"https://api.github.com/users/geof90/repos","events_url":"https://api.github.com/users/geof90/events{/privacy}","received_events_url":"https://api.github.com/users/geof90/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geof90/react-native-1","description":"A framework for building native apps with React.","fork":true,"url":"https://api.github.com/repos/geof90/react-native-1","forks_url":"https://api.github.com/repos/geof90/react-native-1/forks","keys_url":"https://api.github.com/repos/geof90/react-native-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geof90/react-native-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geof90/react-native-1/teams","hooks_url":"https://api.github.com/repos/geof90/react-native-1/hooks","issue_events_url":"https://api.github.com/repos/geof90/react-native-1/issues/events{/number}","events_url":"https://api.github.com/repos/geof90/react-native-1/events","assignees_url":"https://api.github.com/repos/geof90/react-native-1/assignees{/user}","branches_url":"https://api.github.com/repos/geof90/react-native-1/branches{/branch}","tags_url":"https://api.github.com/repos/geof90/react-native-1/tags","blobs_url":"https://api.github.com/repos/geof90/react-native-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geof90/react-native-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geof90/react-native-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/geof90/react-native-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geof90/react-native-1/statuses/{sha}","languages_url":"https://api.github.com/repos/geof90/react-native-1/languages","stargazers_url":"https://api.github.com/repos/geof90/react-native-1/stargazers","contributors_url":"https://api.github.com/repos/geof90/react-native-1/contributors","subscribers_url":"https://api.github.com/repos/geof90/react-native-1/subscribers","subscription_url":"https://api.github.com/repos/geof90/react-native-1/subscription","commits_url":"https://api.github.com/repos/geof90/react-native-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/geof90/react-native-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/geof90/react-native-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/geof90/react-native-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/geof90/react-native-1/contents/{+path}","compare_url":"https://api.github.com/repos/geof90/react-native-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geof90/react-native-1/merges","archive_url":"https://api.github.com/repos/geof90/react-native-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geof90/react-native-1/downloads","issues_url":"https://api.github.com/repos/geof90/react-native-1/issues{/number}","pulls_url":"https://api.github.com/repos/geof90/react-native-1/pulls{/number}","milestones_url":"https://api.github.com/repos/geof90/react-native-1/milestones{/number}","notifications_url":"https://api.github.com/repos/geof90/react-native-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geof90/react-native-1/labels{/name}","releases_url":"https://api.github.com/repos/geof90/react-native-1/releases{/id}","deployments_url":"https://api.github.com/repos/geof90/react-native-1/deployments","created_at":"2016-05-25T17:59:58Z","updated_at":"2016-05-25T18:00:07Z","pushed_at":"2016-08-02T07:36:48Z","git_url":"git://github.com/geof90/react-native-1.git","ssh_url":"git@github.com:geof90/react-native-1.git","clone_url":"https://github.com/geof90/react-native-1.git","svn_url":"https://github.com/geof90/react-native-1","homepage":"http://facebook.github.io/react-native/","size":63369,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"8258366a3d03afc4298cb4c7dda5fb633d133023","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":29028775,"name":"react-native","full_name":"facebook/react-native","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/react-native","description":"A framework for building native apps with React.","fork":false,"url":"https://api.github.com/repos/facebook/react-native","forks_url":"https://api.github.com/repos/facebook/react-native/forks","keys_url":"https://api.github.com/repos/facebook/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/react-native/teams","hooks_url":"https://api.github.com/repos/facebook/react-native/hooks","issue_events_url":"https://api.github.com/repos/facebook/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/react-native/events","assignees_url":"https://api.github.com/repos/facebook/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/react-native/tags","blobs_url":"https://api.github.com/repos/facebook/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/react-native/languages","stargazers_url":"https://api.github.com/repos/facebook/react-native/stargazers","contributors_url":"https://api.github.com/repos/facebook/react-native/contributors","subscribers_url":"https://api.github.com/repos/facebook/react-native/subscribers","subscription_url":"https://api.github.com/repos/facebook/react-native/subscription","commits_url":"https://api.github.com/repos/facebook/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/react-native/merges","archive_url":"https://api.github.com/repos/facebook/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/react-native/downloads","issues_url":"https://api.github.com/repos/facebook/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/react-native/labels{/name}","releases_url":"https://api.github.com/repos/facebook/react-native/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/react-native/deployments","created_at":"2015-01-09T18:10:16Z","updated_at":"2016-08-02T07:41:50Z","pushed_at":"2016-08-02T07:42:29Z","git_url":"git://github.com/facebook/react-native.git","ssh_url":"git@github.com:facebook/react-native.git","clone_url":"https://github.com/facebook/react-native.git","svn_url":"https://github.com/facebook/react-native","homepage":"http://facebook.github.io/react-native/","size":115522,"stargazers_count":35723,"watchers_count":35723,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7738,"mirror_url":null,"open_issues_count":1056,"forks":7738,"open_issues":1056,"watchers":35723,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/9157"},"html":{"href":"https://github.com/facebook/react-native/pull/9157"},"issue":{"href":"https://api.github.com/repos/facebook/react-native/issues/9157"},"comments":{"href":"https://api.github.com/repos/facebook/react-native/issues/9157/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/react-native/pulls/9157/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/react-native/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/react-native/pulls/9157/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/react-native/statuses/024d623f035e1317ef5c02ebe709d3858cd06f6c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":49,"deletions":33,"changed_files":5}}
{"actor":{"display_login":"geof90"}}