GitHub PullRequestEvent at 2014-11-17 21:11:55
Repository: immstruct
Actor: mikaelbr
Payload: {"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/omniscientjs/immstruct/pulls/5","id":24404289,"html_url":"https://github.com/omniscientjs/immstruct/pull/5","diff_url":"https://github.com/omniscientjs/immstruct/pull/5.diff","patch_url":"https://github.com/omniscientjs/immstruct/pull/5.patch","issue_url":"https://api.github.com/repos/omniscientjs/immstruct/issues/5","number":5,"state":"closed","locked":false,"title":"Add ability to input existing immutable cursors","user":{"login":"natew","id":12100,"avatar_url":"https://avatars.githubusercontent.com/u/12100?v=3","gravatar_id":"","url":"https://api.github.com/users/natew","html_url":"https://github.com/natew","followers_url":"https://api.github.com/users/natew/followers","following_url":"https://api.github.com/users/natew/following{/other_user}","gists_url":"https://api.github.com/users/natew/gists{/gist_id}","starred_url":"https://api.github.com/users/natew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natew/subscriptions","organizations_url":"https://api.github.com/users/natew/orgs","repos_url":"https://api.github.com/users/natew/repos","events_url":"https://api.github.com/users/natew/events{/privacy}","received_events_url":"https://api.github.com/users/natew/received_events","type":"User","site_admin":false},"body":"In my project I had a use case where I've already created an immutable object, and I want to add it to immstruct later on. This code works for me, and I added a simple test case. Let me know what you guys think.","created_at":"2014-11-13T22:03:51Z","updated_at":"2014-11-17T21:11:55Z","closed_at":"2014-11-17T21:11:55Z","merged_at":"2014-11-17T21:11:55Z","merge_commit_sha":"7e8f78cbc04d70927e5218091f2a1cb51d6b3c98","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/omniscientjs/immstruct/pulls/5/commits","review_comments_url":"https://api.github.com/repos/omniscientjs/immstruct/pulls/5/comments","review_comment_url":"https://api.github.com/repos/omniscientjs/immstruct/pulls/comments/{number}","comments_url":"https://api.github.com/repos/omniscientjs/immstruct/issues/5/comments","statuses_url":"https://api.github.com/repos/omniscientjs/immstruct/statuses/d137217cf614f6416ee3ac4277c718e32fc70573","head":{"label":"natew:allow-existing-cursors","ref":"allow-existing-cursors","sha":"d137217cf614f6416ee3ac4277c718e32fc70573","user":{"login":"natew","id":12100,"avatar_url":"https://avatars.githubusercontent.com/u/12100?v=3","gravatar_id":"","url":"https://api.github.com/users/natew","html_url":"https://github.com/natew","followers_url":"https://api.github.com/users/natew/followers","following_url":"https://api.github.com/users/natew/following{/other_user}","gists_url":"https://api.github.com/users/natew/gists{/gist_id}","starred_url":"https://api.github.com/users/natew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natew/subscriptions","organizations_url":"https://api.github.com/users/natew/orgs","repos_url":"https://api.github.com/users/natew/repos","events_url":"https://api.github.com/users/natew/events{/privacy}","received_events_url":"https://api.github.com/users/natew/received_events","type":"User","site_admin":false},"repo":{"id":26610150,"name":"immstruct","full_name":"natew/immstruct","owner":{"login":"natew","id":12100,"avatar_url":"https://avatars.githubusercontent.com/u/12100?v=3","gravatar_id":"","url":"https://api.github.com/users/natew","html_url":"https://github.com/natew","followers_url":"https://api.github.com/users/natew/followers","following_url":"https://api.github.com/users/natew/following{/other_user}","gists_url":"https://api.github.com/users/natew/gists{/gist_id}","starred_url":"https://api.github.com/users/natew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natew/subscriptions","organizations_url":"https://api.github.com/users/natew/orgs","repos_url":"https://api.github.com/users/natew/repos","events_url":"https://api.github.com/users/natew/events{/privacy}","received_events_url":"https://api.github.com/users/natew/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/natew/immstruct","description":"Immutable data structure for top-to-bottom properties in component based libraries like React","fork":true,"url":"https://api.github.com/repos/natew/immstruct","forks_url":"https://api.github.com/repos/natew/immstruct/forks","keys_url":"https://api.github.com/repos/natew/immstruct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/natew/immstruct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/natew/immstruct/teams","hooks_url":"https://api.github.com/repos/natew/immstruct/hooks","issue_events_url":"https://api.github.com/repos/natew/immstruct/issues/events{/number}","events_url":"https://api.github.com/repos/natew/immstruct/events","assignees_url":"https://api.github.com/repos/natew/immstruct/assignees{/user}","branches_url":"https://api.github.com/repos/natew/immstruct/branches{/branch}","tags_url":"https://api.github.com/repos/natew/immstruct/tags","blobs_url":"https://api.github.com/repos/natew/immstruct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/natew/immstruct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/natew/immstruct/git/refs{/sha}","trees_url":"https://api.github.com/repos/natew/immstruct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/natew/immstruct/statuses/{sha}","languages_url":"https://api.github.com/repos/natew/immstruct/languages","stargazers_url":"https://api.github.com/repos/natew/immstruct/stargazers","contributors_url":"https://api.github.com/repos/natew/immstruct/contributors","subscribers_url":"https://api.github.com/repos/natew/immstruct/subscribers","subscription_url":"https://api.github.com/repos/natew/immstruct/subscription","commits_url":"https://api.github.com/repos/natew/immstruct/commits{/sha}","git_commits_url":"https://api.github.com/repos/natew/immstruct/git/commits{/sha}","comments_url":"https://api.github.com/repos/natew/immstruct/comments{/number}","issue_comment_url":"https://api.github.com/repos/natew/immstruct/issues/comments/{number}","contents_url":"https://api.github.com/repos/natew/immstruct/contents/{+path}","compare_url":"https://api.github.com/repos/natew/immstruct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/natew/immstruct/merges","archive_url":"https://api.github.com/repos/natew/immstruct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/natew/immstruct/downloads","issues_url":"https://api.github.com/repos/natew/immstruct/issues{/number}","pulls_url":"https://api.github.com/repos/natew/immstruct/pulls{/number}","milestones_url":"https://api.github.com/repos/natew/immstruct/milestones{/number}","notifications_url":"https://api.github.com/repos/natew/immstruct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/natew/immstruct/labels{/name}","releases_url":"https://api.github.com/repos/natew/immstruct/releases{/id}","created_at":"2014-11-13T22:02:31Z","updated_at":"2014-11-13T22:02:31Z","pushed_at":"2014-11-13T22:02:57Z","git_url":"git://github.com/natew/immstruct.git","ssh_url":"git@github.com:natew/immstruct.git","clone_url":"https://github.com/natew/immstruct.git","svn_url":"https://github.com/natew/immstruct","homepage":"","size":306,"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":"omniscientjs:master","ref":"master","sha":"c59ba69df097c6959ec4f300bf3009c18f8f5d8e","user":{"login":"omniscientjs","id":9137180,"avatar_url":"https://avatars.githubusercontent.com/u/9137180?v=3","gravatar_id":"","url":"https://api.github.com/users/omniscientjs","html_url":"https://github.com/omniscientjs","followers_url":"https://api.github.com/users/omniscientjs/followers","following_url":"https://api.github.com/users/omniscientjs/following{/other_user}","gists_url":"https://api.github.com/users/omniscientjs/gists{/gist_id}","starred_url":"https://api.github.com/users/omniscientjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omniscientjs/subscriptions","organizations_url":"https://api.github.com/users/omniscientjs/orgs","repos_url":"https://api.github.com/users/omniscientjs/repos","events_url":"https://api.github.com/users/omniscientjs/events{/privacy}","received_events_url":"https://api.github.com/users/omniscientjs/received_events","type":"Organization","site_admin":false},"repo":{"id":24979127,"name":"immstruct","full_name":"omniscientjs/immstruct","owner":{"login":"omniscientjs","id":9137180,"avatar_url":"https://avatars.githubusercontent.com/u/9137180?v=3","gravatar_id":"","url":"https://api.github.com/users/omniscientjs","html_url":"https://github.com/omniscientjs","followers_url":"https://api.github.com/users/omniscientjs/followers","following_url":"https://api.github.com/users/omniscientjs/following{/other_user}","gists_url":"https://api.github.com/users/omniscientjs/gists{/gist_id}","starred_url":"https://api.github.com/users/omniscientjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omniscientjs/subscriptions","organizations_url":"https://api.github.com/users/omniscientjs/orgs","repos_url":"https://api.github.com/users/omniscientjs/repos","events_url":"https://api.github.com/users/omniscientjs/events{/privacy}","received_events_url":"https://api.github.com/users/omniscientjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omniscientjs/immstruct","description":"Immutable data structure for top-to-bottom properties in component based libraries like React","fork":false,"url":"https://api.github.com/repos/omniscientjs/immstruct","forks_url":"https://api.github.com/repos/omniscientjs/immstruct/forks","keys_url":"https://api.github.com/repos/omniscientjs/immstruct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omniscientjs/immstruct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omniscientjs/immstruct/teams","hooks_url":"https://api.github.com/repos/omniscientjs/immstruct/hooks","issue_events_url":"https://api.github.com/repos/omniscientjs/immstruct/issues/events{/number}","events_url":"https://api.github.com/repos/omniscientjs/immstruct/events","assignees_url":"https://api.github.com/repos/omniscientjs/immstruct/assignees{/user}","branches_url":"https://api.github.com/repos/omniscientjs/immstruct/branches{/branch}","tags_url":"https://api.github.com/repos/omniscientjs/immstruct/tags","blobs_url":"https://api.github.com/repos/omniscientjs/immstruct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omniscientjs/immstruct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omniscientjs/immstruct/git/refs{/sha}","trees_url":"https://api.github.com/repos/omniscientjs/immstruct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omniscientjs/immstruct/statuses/{sha}","languages_url":"https://api.github.com/repos/omniscientjs/immstruct/languages","stargazers_url":"https://api.github.com/repos/omniscientjs/immstruct/stargazers","contributors_url":"https://api.github.com/repos/omniscientjs/immstruct/contributors","subscribers_url":"https://api.github.com/repos/omniscientjs/immstruct/subscribers","subscription_url":"https://api.github.com/repos/omniscientjs/immstruct/subscription","commits_url":"https://api.github.com/repos/omniscientjs/immstruct/commits{/sha}","git_commits_url":"https://api.github.com/repos/omniscientjs/immstruct/git/commits{/sha}","comments_url":"https://api.github.com/repos/omniscientjs/immstruct/comments{/number}","issue_comment_url":"https://api.github.com/repos/omniscientjs/immstruct/issues/comments/{number}","contents_url":"https://api.github.com/repos/omniscientjs/immstruct/contents/{+path}","compare_url":"https://api.github.com/repos/omniscientjs/immstruct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omniscientjs/immstruct/merges","archive_url":"https://api.github.com/repos/omniscientjs/immstruct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omniscientjs/immstruct/downloads","issues_url":"https://api.github.com/repos/omniscientjs/immstruct/issues{/number}","pulls_url":"https://api.github.com/repos/omniscientjs/immstruct/pulls{/number}","milestones_url":"https://api.github.com/repos/omniscientjs/immstruct/milestones{/number}","notifications_url":"https://api.github.com/repos/omniscientjs/immstruct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omniscientjs/immstruct/labels{/name}","releases_url":"https://api.github.com/repos/omniscientjs/immstruct/releases{/id}","created_at":"2014-10-09T07:53:41Z","updated_at":"2014-11-08T01:35:08Z","pushed_at":"2014-11-17T21:11:55Z","git_url":"git://github.com/omniscientjs/immstruct.git","ssh_url":"git@github.com:omniscientjs/immstruct.git","clone_url":"https://github.com/omniscientjs/immstruct.git","svn_url":"https://github.com/omniscientjs/immstruct","homepage":"","size":306,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omniscientjs/immstruct/pulls/5"},"html":{"href":"https://github.com/omniscientjs/immstruct/pull/5"},"issue":{"href":"https://api.github.com/repos/omniscientjs/immstruct/issues/5"},"comments":{"href":"https://api.github.com/repos/omniscientjs/immstruct/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/omniscientjs/immstruct/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/omniscientjs/immstruct/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/omniscientjs/immstruct/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/omniscientjs/immstruct/statuses/d137217cf614f6416ee3ac4277c718e32fc70573"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mikaelbr","id":606374,"avatar_url":"https://avatars.githubusercontent.com/u/606374?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaelbr","html_url":"https://github.com/mikaelbr","followers_url":"https://api.github.com/users/mikaelbr/followers","following_url":"https://api.github.com/users/mikaelbr/following{/other_user}","gists_url":"https://api.github.com/users/mikaelbr/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelbr/subscriptions","organizations_url":"https://api.github.com/users/mikaelbr/orgs","repos_url":"https://api.github.com/users/mikaelbr/repos","events_url":"https://api.github.com/users/mikaelbr/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelbr/received_events","type":"User","site_admin":false},"comments":5,"review_comments":2,"commits":1,"additions":23,"deletions":1,"changed_files":2}}