{"action":"opened","number":36,"pull_request":{"url":"https://api.github.com/repos/lacker/cardkit/pulls/36","id":37960452,"html_url":"https://github.com/lacker/cardkit/pull/36","diff_url":"https://github.com/lacker/cardkit/pull/36.diff","patch_url":"https://github.com/lacker/cardkit/pull/36.patch","issue_url":"https://api.github.com/repos/lacker/cardkit/issues/36","number":36,"state":"open","locked":false,"title":"fix two bugs in GameState serialization","user":{"login":"lacker","id":106475,"avatar_url":"https://avatars.githubusercontent.com/u/106475?v=3","gravatar_id":"","url":"https://api.github.com/users/lacker","html_url":"https://github.com/lacker","followers_url":"https://api.github.com/users/lacker/followers","following_url":"https://api.github.com/users/lacker/following{/other_user}","gists_url":"https://api.github.com/users/lacker/gists{/gist_id}","starred_url":"https://api.github.com/users/lacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacker/subscriptions","organizations_url":"https://api.github.com/users/lacker/orgs","repos_url":"https://api.github.com/users/lacker/repos","events_url":"https://api.github.com/users/lacker/events{/privacy}","received_events_url":"https://api.github.com/users/lacker/received_events","type":"User","site_admin":false},"body":"The getHand function was getting totally lost, because after deserialization it wasn't a PlayerState it was just a classless object.\r\n\r\nAlso turn was getting deserialized wrong, due to some 0 vs false vs undefined confusion.","created_at":"2015-06-18T00:11:56Z","updated_at":"2015-06-18T00:11:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f720c16dba39e12f2aacbb3f1b2370eaac2eac6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lacker/cardkit/pulls/36/commits","review_comments_url":"https://api.github.com/repos/lacker/cardkit/pulls/36/comments","review_comment_url":"https://api.github.com/repos/lacker/cardkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lacker/cardkit/issues/36/comments","statuses_url":"https://api.github.com/repos/lacker/cardkit/statuses/d25285acedd781c108f71ae7dfcbe7e90438b64a","head":{"label":"lacker:serialization","ref":"serialization","sha":"d25285acedd781c108f71ae7dfcbe7e90438b64a","user":{"login":"lacker","id":106475,"avatar_url":"https://avatars.githubusercontent.com/u/106475?v=3","gravatar_id":"","url":"https://api.github.com/users/lacker","html_url":"https://github.com/lacker","followers_url":"https://api.github.com/users/lacker/followers","following_url":"https://api.github.com/users/lacker/following{/other_user}","gists_url":"https://api.github.com/users/lacker/gists{/gist_id}","starred_url":"https://api.github.com/users/lacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacker/subscriptions","organizations_url":"https://api.github.com/users/lacker/orgs","repos_url":"https://api.github.com/users/lacker/repos","events_url":"https://api.github.com/users/lacker/events{/privacy}","received_events_url":"https://api.github.com/users/lacker/received_events","type":"User","site_admin":false},"repo":{"id":37109729,"name":"cardkit","full_name":"lacker/cardkit","owner":{"login":"lacker","id":106475,"avatar_url":"https://avatars.githubusercontent.com/u/106475?v=3","gravatar_id":"","url":"https://api.github.com/users/lacker","html_url":"https://github.com/lacker","followers_url":"https://api.github.com/users/lacker/followers","following_url":"https://api.github.com/users/lacker/following{/other_user}","gists_url":"https://api.github.com/users/lacker/gists{/gist_id}","starred_url":"https://api.github.com/users/lacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacker/subscriptions","organizations_url":"https://api.github.com/users/lacker/orgs","repos_url":"https://api.github.com/users/lacker/repos","events_url":"https://api.github.com/users/lacker/events{/privacy}","received_events_url":"https://api.github.com/users/lacker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lacker/cardkit","description":"A bunch of tools for building card games.","fork":false,"url":"https://api.github.com/repos/lacker/cardkit","forks_url":"https://api.github.com/repos/lacker/cardkit/forks","keys_url":"https://api.github.com/repos/lacker/cardkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lacker/cardkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lacker/cardkit/teams","hooks_url":"https://api.github.com/repos/lacker/cardkit/hooks","issue_events_url":"https://api.github.com/repos/lacker/cardkit/issues/events{/number}","events_url":"https://api.github.com/repos/lacker/cardkit/events","assignees_url":"https://api.github.com/repos/lacker/cardkit/assignees{/user}","branches_url":"https://api.github.com/repos/lacker/cardkit/branches{/branch}","tags_url":"https://api.github.com/repos/lacker/cardkit/tags","blobs_url":"https://api.github.com/repos/lacker/cardkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lacker/cardkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lacker/cardkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/lacker/cardkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lacker/cardkit/statuses/{sha}","languages_url":"https://api.github.com/repos/lacker/cardkit/languages","stargazers_url":"https://api.github.com/repos/lacker/cardkit/stargazers","contributors_url":"https://api.github.com/repos/lacker/cardkit/contributors","subscribers_url":"https://api.github.com/repos/lacker/cardkit/subscribers","subscription_url":"https://api.github.com/repos/lacker/cardkit/subscription","commits_url":"https://api.github.com/repos/lacker/cardkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/lacker/cardkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/lacker/cardkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/lacker/cardkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/lacker/cardkit/contents/{+path}","compare_url":"https://api.github.com/repos/lacker/cardkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lacker/cardkit/merges","archive_url":"https://api.github.com/repos/lacker/cardkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lacker/cardkit/downloads","issues_url":"https://api.github.com/repos/lacker/cardkit/issues{/number}","pulls_url":"https://api.github.com/repos/lacker/cardkit/pulls{/number}","milestones_url":"https://api.github.com/repos/lacker/cardkit/milestones{/number}","notifications_url":"https://api.github.com/repos/lacker/cardkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lacker/cardkit/labels{/name}","releases_url":"https://api.github.com/repos/lacker/cardkit/releases{/id}","created_at":"2015-06-09T04:15:15Z","updated_at":"2015-06-14T05:19:27Z","pushed_at":"2015-06-18T00:11:58Z","git_url":"git://github.com/lacker/cardkit.git","ssh_url":"git@github.com:lacker/cardkit.git","clone_url":"https://github.com/lacker/cardkit.git","svn_url":"https://github.com/lacker/cardkit","homepage":null,"size":778,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"lacker:master","ref":"master","sha":"9958d8821021f1fb3b3debfddbfe5deb1666c6ce","user":{"login":"lacker","id":106475,"avatar_url":"https://avatars.githubusercontent.com/u/106475?v=3","gravatar_id":"","url":"https://api.github.com/users/lacker","html_url":"https://github.com/lacker","followers_url":"https://api.github.com/users/lacker/followers","following_url":"https://api.github.com/users/lacker/following{/other_user}","gists_url":"https://api.github.com/users/lacker/gists{/gist_id}","starred_url":"https://api.github.com/users/lacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacker/subscriptions","organizations_url":"https://api.github.com/users/lacker/orgs","repos_url":"https://api.github.com/users/lacker/repos","events_url":"https://api.github.com/users/lacker/events{/privacy}","received_events_url":"https://api.github.com/users/lacker/received_events","type":"User","site_admin":false},"repo":{"id":37109729,"name":"cardkit","full_name":"lacker/cardkit","owner":{"login":"lacker","id":106475,"avatar_url":"https://avatars.githubusercontent.com/u/106475?v=3","gravatar_id":"","url":"https://api.github.com/users/lacker","html_url":"https://github.com/lacker","followers_url":"https://api.github.com/users/lacker/followers","following_url":"https://api.github.com/users/lacker/following{/other_user}","gists_url":"https://api.github.com/users/lacker/gists{/gist_id}","starred_url":"https://api.github.com/users/lacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacker/subscriptions","organizations_url":"https://api.github.com/users/lacker/orgs","repos_url":"https://api.github.com/users/lacker/repos","events_url":"https://api.github.com/users/lacker/events{/privacy}","received_events_url":"https://api.github.com/users/lacker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lacker/cardkit","description":"A bunch of tools for building card games.","fork":false,"url":"https://api.github.com/repos/lacker/cardkit","forks_url":"https://api.github.com/repos/lacker/cardkit/forks","keys_url":"https://api.github.com/repos/lacker/cardkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lacker/cardkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lacker/cardkit/teams","hooks_url":"https://api.github.com/repos/lacker/cardkit/hooks","issue_events_url":"https://api.github.com/repos/lacker/cardkit/issues/events{/number}","events_url":"https://api.github.com/repos/lacker/cardkit/events","assignees_url":"https://api.github.com/repos/lacker/cardkit/assignees{/user}","branches_url":"https://api.github.com/repos/lacker/cardkit/branches{/branch}","tags_url":"https://api.github.com/repos/lacker/cardkit/tags","blobs_url":"https://api.github.com/repos/lacker/cardkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lacker/cardkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lacker/cardkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/lacker/cardkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lacker/cardkit/statuses/{sha}","languages_url":"https://api.github.com/repos/lacker/cardkit/languages","stargazers_url":"https://api.github.com/repos/lacker/cardkit/stargazers","contributors_url":"https://api.github.com/repos/lacker/cardkit/contributors","subscribers_url":"https://api.github.com/repos/lacker/cardkit/subscribers","subscription_url":"https://api.github.com/repos/lacker/cardkit/subscription","commits_url":"https://api.github.com/repos/lacker/cardkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/lacker/cardkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/lacker/cardkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/lacker/cardkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/lacker/cardkit/contents/{+path}","compare_url":"https://api.github.com/repos/lacker/cardkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lacker/cardkit/merges","archive_url":"https://api.github.com/repos/lacker/cardkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lacker/cardkit/downloads","issues_url":"https://api.github.com/repos/lacker/cardkit/issues{/number}","pulls_url":"https://api.github.com/repos/lacker/cardkit/pulls{/number}","milestones_url":"https://api.github.com/repos/lacker/cardkit/milestones{/number}","notifications_url":"https://api.github.com/repos/lacker/cardkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lacker/cardkit/labels{/name}","releases_url":"https://api.github.com/repos/lacker/cardkit/releases{/id}","created_at":"2015-06-09T04:15:15Z","updated_at":"2015-06-14T05:19:27Z","pushed_at":"2015-06-18T00:11:58Z","git_url":"git://github.com/lacker/cardkit.git","ssh_url":"git@github.com:lacker/cardkit.git","clone_url":"https://github.com/lacker/cardkit.git","svn_url":"https://github.com/lacker/cardkit","homepage":null,"size":778,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lacker/cardkit/pulls/36"},"html":{"href":"https://github.com/lacker/cardkit/pull/36"},"issue":{"href":"https://api.github.com/repos/lacker/cardkit/issues/36"},"comments":{"href":"https://api.github.com/repos/lacker/cardkit/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/lacker/cardkit/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/lacker/cardkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lacker/cardkit/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/lacker/cardkit/statuses/d25285acedd781c108f71ae7dfcbe7e90438b64a"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":25,"deletions":4,"changed_files":2}}