{"action":"closed","number":71,"pull_request":{"url":"https://api.github.com/repos/contentful/widget-sdk/pulls/71","id":55877352,"html_url":"https://github.com/contentful/widget-sdk/pull/71","diff_url":"https://github.com/contentful/widget-sdk/pull/71.diff","patch_url":"https://github.com/contentful/widget-sdk/pull/71.patch","issue_url":"https://api.github.com/repos/contentful/widget-sdk/issues/71","number":71,"state":"closed","locked":false,"title":"Refactores api initialization to use `Channel`","user":{"login":"DanweDE","id":101926,"avatar_url":"https://avatars.githubusercontent.com/u/101926?v=3","gravatar_id":"","url":"https://api.github.com/users/DanweDE","html_url":"https://github.com/DanweDE","followers_url":"https://api.github.com/users/DanweDE/followers","following_url":"https://api.github.com/users/DanweDE/following{/other_user}","gists_url":"https://api.github.com/users/DanweDE/gists{/gist_id}","starred_url":"https://api.github.com/users/DanweDE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanweDE/subscriptions","organizations_url":"https://api.github.com/users/DanweDE/orgs","repos_url":"https://api.github.com/users/DanweDE/repos","events_url":"https://api.github.com/users/DanweDE/events{/privacy}","received_events_url":"https://api.github.com/users/DanweDE/received_events","type":"User","site_admin":false},"body":"Refactors api initialization to use `Channel`\r\n* Makes index.js leaner by removing `Channel` construction there but leaves code which wires up the api initially.\r\n* Renames *setup.js* to *initialize.js* and uses `Channel` instead of *message* event.\r\n* Adds *create-api.js* whose `createApi` function is now directly used by `initializeApi` rather than getting injected by *index.js*\r\n","created_at":"2016-01-13T10:15:04Z","updated_at":"2016-02-23T12:30:53Z","closed_at":"2016-02-23T12:30:53Z","merged_at":"2016-02-23T12:30:53Z","merge_commit_sha":"836bf6c41020faafd7d1f2c11e28be837b3693ed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/contentful/widget-sdk/pulls/71/commits","review_comments_url":"https://api.github.com/repos/contentful/widget-sdk/pulls/71/comments","review_comment_url":"https://api.github.com/repos/contentful/widget-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/contentful/widget-sdk/issues/71/comments","statuses_url":"https://api.github.com/repos/contentful/widget-sdk/statuses/98e886104b350d6c6c8303d70b0f82b93307454a","head":{"label":"contentful:api-initialization","ref":"api-initialization","sha":"98e886104b350d6c6c8303d70b0f82b93307454a","user":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":45402653,"name":"widget-sdk","full_name":"contentful/widget-sdk","owner":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contentful/widget-sdk","description":"Library for developers to create custom editing interfaces for app.contentful.com","fork":false,"url":"https://api.github.com/repos/contentful/widget-sdk","forks_url":"https://api.github.com/repos/contentful/widget-sdk/forks","keys_url":"https://api.github.com/repos/contentful/widget-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/widget-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/widget-sdk/teams","hooks_url":"https://api.github.com/repos/contentful/widget-sdk/hooks","issue_events_url":"https://api.github.com/repos/contentful/widget-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/widget-sdk/events","assignees_url":"https://api.github.com/repos/contentful/widget-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/widget-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/widget-sdk/tags","blobs_url":"https://api.github.com/repos/contentful/widget-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/widget-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/widget-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/widget-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/widget-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/widget-sdk/languages","stargazers_url":"https://api.github.com/repos/contentful/widget-sdk/stargazers","contributors_url":"https://api.github.com/repos/contentful/widget-sdk/contributors","subscribers_url":"https://api.github.com/repos/contentful/widget-sdk/subscribers","subscription_url":"https://api.github.com/repos/contentful/widget-sdk/subscription","commits_url":"https://api.github.com/repos/contentful/widget-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/widget-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/widget-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/widget-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/widget-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/widget-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/widget-sdk/merges","archive_url":"https://api.github.com/repos/contentful/widget-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/widget-sdk/downloads","issues_url":"https://api.github.com/repos/contentful/widget-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/widget-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/widget-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/widget-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/widget-sdk/labels{/name}","releases_url":"https://api.github.com/repos/contentful/widget-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/contentful/widget-sdk/deployments","created_at":"2015-11-02T15:21:05Z","updated_at":"2016-02-16T18:26:57Z","pushed_at":"2016-02-23T12:30:53Z","git_url":"git://github.com/contentful/widget-sdk.git","ssh_url":"git@github.com:contentful/widget-sdk.git","clone_url":"https://github.com/contentful/widget-sdk.git","svn_url":"https://github.com/contentful/widget-sdk","homepage":"","size":1251,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"contentful:master","ref":"master","sha":"b0225b0136ab93a9ba06f340c63299acd753f5b1","user":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":45402653,"name":"widget-sdk","full_name":"contentful/widget-sdk","owner":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contentful/widget-sdk","description":"Library for developers to create custom editing interfaces for app.contentful.com","fork":false,"url":"https://api.github.com/repos/contentful/widget-sdk","forks_url":"https://api.github.com/repos/contentful/widget-sdk/forks","keys_url":"https://api.github.com/repos/contentful/widget-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/widget-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/widget-sdk/teams","hooks_url":"https://api.github.com/repos/contentful/widget-sdk/hooks","issue_events_url":"https://api.github.com/repos/contentful/widget-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/widget-sdk/events","assignees_url":"https://api.github.com/repos/contentful/widget-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/widget-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/widget-sdk/tags","blobs_url":"https://api.github.com/repos/contentful/widget-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/widget-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/widget-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/widget-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/widget-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/widget-sdk/languages","stargazers_url":"https://api.github.com/repos/contentful/widget-sdk/stargazers","contributors_url":"https://api.github.com/repos/contentful/widget-sdk/contributors","subscribers_url":"https://api.github.com/repos/contentful/widget-sdk/subscribers","subscription_url":"https://api.github.com/repos/contentful/widget-sdk/subscription","commits_url":"https://api.github.com/repos/contentful/widget-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/widget-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/widget-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/widget-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/widget-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/widget-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/widget-sdk/merges","archive_url":"https://api.github.com/repos/contentful/widget-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/widget-sdk/downloads","issues_url":"https://api.github.com/repos/contentful/widget-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/widget-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/widget-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/widget-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/widget-sdk/labels{/name}","releases_url":"https://api.github.com/repos/contentful/widget-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/contentful/widget-sdk/deployments","created_at":"2015-11-02T15:21:05Z","updated_at":"2016-02-16T18:26:57Z","pushed_at":"2016-02-23T12:30:53Z","git_url":"git://github.com/contentful/widget-sdk.git","ssh_url":"git@github.com:contentful/widget-sdk.git","clone_url":"https://github.com/contentful/widget-sdk.git","svn_url":"https://github.com/contentful/widget-sdk","homepage":"","size":1251,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/contentful/widget-sdk/pulls/71"},"html":{"href":"https://github.com/contentful/widget-sdk/pull/71"},"issue":{"href":"https://api.github.com/repos/contentful/widget-sdk/issues/71"},"comments":{"href":"https://api.github.com/repos/contentful/widget-sdk/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/contentful/widget-sdk/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/contentful/widget-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/contentful/widget-sdk/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/contentful/widget-sdk/statuses/98e886104b350d6c6c8303d70b0f82b93307454a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"DanweDE","id":101926,"avatar_url":"https://avatars.githubusercontent.com/u/101926?v=3","gravatar_id":"","url":"https://api.github.com/users/DanweDE","html_url":"https://github.com/DanweDE","followers_url":"https://api.github.com/users/DanweDE/followers","following_url":"https://api.github.com/users/DanweDE/following{/other_user}","gists_url":"https://api.github.com/users/DanweDE/gists{/gist_id}","starred_url":"https://api.github.com/users/DanweDE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanweDE/subscriptions","organizations_url":"https://api.github.com/users/DanweDE/orgs","repos_url":"https://api.github.com/users/DanweDE/repos","events_url":"https://api.github.com/users/DanweDE/events{/privacy}","received_events_url":"https://api.github.com/users/DanweDE/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":88,"deletions":93,"changed_files":5}}