{"action":"closed","number":17,"pull_request":{"url":"https://api.github.com/repos/sabondano/2048/pulls/17","id":48664504,"html_url":"https://github.com/sabondano/2048/pull/17","diff_url":"https://github.com/sabondano/2048/pull/17.diff","patch_url":"https://github.com/sabondano/2048/pull/17.patch","issue_url":"https://api.github.com/repos/sabondano/2048/issues/17","number":17,"state":"closed","locked":false,"title":"Add #updateScore method to Game class","user":{"login":"sabondano","id":1958868,"avatar_url":"https://avatars.githubusercontent.com/u/1958868?v=3","gravatar_id":"","url":"https://api.github.com/users/sabondano","html_url":"https://github.com/sabondano","followers_url":"https://api.github.com/users/sabondano/followers","following_url":"https://api.github.com/users/sabondano/following{/other_user}","gists_url":"https://api.github.com/users/sabondano/gists{/gist_id}","starred_url":"https://api.github.com/users/sabondano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabondano/subscriptions","organizations_url":"https://api.github.com/users/sabondano/orgs","repos_url":"https://api.github.com/users/sabondano/repos","events_url":"https://api.github.com/users/sabondano/events{/privacy}","received_events_url":"https://api.github.com/users/sabondano/received_events","type":"User","site_admin":false},"body":"Why:\r\n* A user should get points every time he successfully collapses tiles.\r\n\r\nThis change addresses the need by:\r\n* Adding #updateScore method to Game class.\r\n* Adding #clearAllTiles method to Board class.\r\n* Calling #updateScore within #collapse method in Board class.\r\n* Changed #map to #forEach in #collapse method in Board class because\r\n  returning a new spaces array is not necessary.\r\n* Because of the changes described above previous written tests that\r\n  relied on #collapse had to be revised to include a game object.","created_at":"2015-10-24T20:28:59Z","updated_at":"2015-10-24T20:30:23Z","closed_at":"2015-10-24T20:30:23Z","merged_at":"2015-10-24T20:30:23Z","merge_commit_sha":"4cf26fd8791959a34ff04b7c90afc1bc5c086c55","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sabondano/2048/pulls/17/commits","review_comments_url":"https://api.github.com/repos/sabondano/2048/pulls/17/comments","review_comment_url":"https://api.github.com/repos/sabondano/2048/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sabondano/2048/issues/17/comments","statuses_url":"https://api.github.com/repos/sabondano/2048/statuses/6c63a175a972c19bd74dcc2701b3bde392ed0933","head":{"label":"sabondano:score","ref":"score","sha":"6c63a175a972c19bd74dcc2701b3bde392ed0933","user":{"login":"sabondano","id":1958868,"avatar_url":"https://avatars.githubusercontent.com/u/1958868?v=3","gravatar_id":"","url":"https://api.github.com/users/sabondano","html_url":"https://github.com/sabondano","followers_url":"https://api.github.com/users/sabondano/followers","following_url":"https://api.github.com/users/sabondano/following{/other_user}","gists_url":"https://api.github.com/users/sabondano/gists{/gist_id}","starred_url":"https://api.github.com/users/sabondano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabondano/subscriptions","organizations_url":"https://api.github.com/users/sabondano/orgs","repos_url":"https://api.github.com/users/sabondano/repos","events_url":"https://api.github.com/users/sabondano/events{/privacy}","received_events_url":"https://api.github.com/users/sabondano/received_events","type":"User","site_admin":false},"repo":{"id":44568428,"name":"2048","full_name":"sabondano/2048","owner":{"login":"sabondano","id":1958868,"avatar_url":"https://avatars.githubusercontent.com/u/1958868?v=3","gravatar_id":"","url":"https://api.github.com/users/sabondano","html_url":"https://github.com/sabondano","followers_url":"https://api.github.com/users/sabondano/followers","following_url":"https://api.github.com/users/sabondano/following{/other_user}","gists_url":"https://api.github.com/users/sabondano/gists{/gist_id}","starred_url":"https://api.github.com/users/sabondano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabondano/subscriptions","organizations_url":"https://api.github.com/users/sabondano/orgs","repos_url":"https://api.github.com/users/sabondano/repos","events_url":"https://api.github.com/users/sabondano/events{/privacy}","received_events_url":"https://api.github.com/users/sabondano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sabondano/2048","description":"","fork":true,"url":"https://api.github.com/repos/sabondano/2048","forks_url":"https://api.github.com/repos/sabondano/2048/forks","keys_url":"https://api.github.com/repos/sabondano/2048/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sabondano/2048/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sabondano/2048/teams","hooks_url":"https://api.github.com/repos/sabondano/2048/hooks","issue_events_url":"https://api.github.com/repos/sabondano/2048/issues/events{/number}","events_url":"https://api.github.com/repos/sabondano/2048/events","assignees_url":"https://api.github.com/repos/sabondano/2048/assignees{/user}","branches_url":"https://api.github.com/repos/sabondano/2048/branches{/branch}","tags_url":"https://api.github.com/repos/sabondano/2048/tags","blobs_url":"https://api.github.com/repos/sabondano/2048/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sabondano/2048/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sabondano/2048/git/refs{/sha}","trees_url":"https://api.github.com/repos/sabondano/2048/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sabondano/2048/statuses/{sha}","languages_url":"https://api.github.com/repos/sabondano/2048/languages","stargazers_url":"https://api.github.com/repos/sabondano/2048/stargazers","contributors_url":"https://api.github.com/repos/sabondano/2048/contributors","subscribers_url":"https://api.github.com/repos/sabondano/2048/subscribers","subscription_url":"https://api.github.com/repos/sabondano/2048/subscription","commits_url":"https://api.github.com/repos/sabondano/2048/commits{/sha}","git_commits_url":"https://api.github.com/repos/sabondano/2048/git/commits{/sha}","comments_url":"https://api.github.com/repos/sabondano/2048/comments{/number}","issue_comment_url":"https://api.github.com/repos/sabondano/2048/issues/comments{/number}","contents_url":"https://api.github.com/repos/sabondano/2048/contents/{+path}","compare_url":"https://api.github.com/repos/sabondano/2048/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sabondano/2048/merges","archive_url":"https://api.github.com/repos/sabondano/2048/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sabondano/2048/downloads","issues_url":"https://api.github.com/repos/sabondano/2048/issues{/number}","pulls_url":"https://api.github.com/repos/sabondano/2048/pulls{/number}","milestones_url":"https://api.github.com/repos/sabondano/2048/milestones{/number}","notifications_url":"https://api.github.com/repos/sabondano/2048/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sabondano/2048/labels{/name}","releases_url":"https://api.github.com/repos/sabondano/2048/releases{/id}","created_at":"2015-10-19T22:44:18Z","updated_at":"2015-10-20T20:48:52Z","pushed_at":"2015-10-24T20:30:23Z","git_url":"git://github.com/sabondano/2048.git","ssh_url":"git@github.com:sabondano/2048.git","clone_url":"https://github.com/sabondano/2048.git","svn_url":"https://github.com/sabondano/2048","homepage":null,"size":437,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sabondano:master","ref":"master","sha":"4704a98e898fbe57068bc088b861895b29e6c2a8","user":{"login":"sabondano","id":1958868,"avatar_url":"https://avatars.githubusercontent.com/u/1958868?v=3","gravatar_id":"","url":"https://api.github.com/users/sabondano","html_url":"https://github.com/sabondano","followers_url":"https://api.github.com/users/sabondano/followers","following_url":"https://api.github.com/users/sabondano/following{/other_user}","gists_url":"https://api.github.com/users/sabondano/gists{/gist_id}","starred_url":"https://api.github.com/users/sabondano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabondano/subscriptions","organizations_url":"https://api.github.com/users/sabondano/orgs","repos_url":"https://api.github.com/users/sabondano/repos","events_url":"https://api.github.com/users/sabondano/events{/privacy}","received_events_url":"https://api.github.com/users/sabondano/received_events","type":"User","site_admin":false},"repo":{"id":44568428,"name":"2048","full_name":"sabondano/2048","owner":{"login":"sabondano","id":1958868,"avatar_url":"https://avatars.githubusercontent.com/u/1958868?v=3","gravatar_id":"","url":"https://api.github.com/users/sabondano","html_url":"https://github.com/sabondano","followers_url":"https://api.github.com/users/sabondano/followers","following_url":"https://api.github.com/users/sabondano/following{/other_user}","gists_url":"https://api.github.com/users/sabondano/gists{/gist_id}","starred_url":"https://api.github.com/users/sabondano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabondano/subscriptions","organizations_url":"https://api.github.com/users/sabondano/orgs","repos_url":"https://api.github.com/users/sabondano/repos","events_url":"https://api.github.com/users/sabondano/events{/privacy}","received_events_url":"https://api.github.com/users/sabondano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sabondano/2048","description":"","fork":true,"url":"https://api.github.com/repos/sabondano/2048","forks_url":"https://api.github.com/repos/sabondano/2048/forks","keys_url":"https://api.github.com/repos/sabondano/2048/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sabondano/2048/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sabondano/2048/teams","hooks_url":"https://api.github.com/repos/sabondano/2048/hooks","issue_events_url":"https://api.github.com/repos/sabondano/2048/issues/events{/number}","events_url":"https://api.github.com/repos/sabondano/2048/events","assignees_url":"https://api.github.com/repos/sabondano/2048/assignees{/user}","branches_url":"https://api.github.com/repos/sabondano/2048/branches{/branch}","tags_url":"https://api.github.com/repos/sabondano/2048/tags","blobs_url":"https://api.github.com/repos/sabondano/2048/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sabondano/2048/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sabondano/2048/git/refs{/sha}","trees_url":"https://api.github.com/repos/sabondano/2048/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sabondano/2048/statuses/{sha}","languages_url":"https://api.github.com/repos/sabondano/2048/languages","stargazers_url":"https://api.github.com/repos/sabondano/2048/stargazers","contributors_url":"https://api.github.com/repos/sabondano/2048/contributors","subscribers_url":"https://api.github.com/repos/sabondano/2048/subscribers","subscription_url":"https://api.github.com/repos/sabondano/2048/subscription","commits_url":"https://api.github.com/repos/sabondano/2048/commits{/sha}","git_commits_url":"https://api.github.com/repos/sabondano/2048/git/commits{/sha}","comments_url":"https://api.github.com/repos/sabondano/2048/comments{/number}","issue_comment_url":"https://api.github.com/repos/sabondano/2048/issues/comments{/number}","contents_url":"https://api.github.com/repos/sabondano/2048/contents/{+path}","compare_url":"https://api.github.com/repos/sabondano/2048/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sabondano/2048/merges","archive_url":"https://api.github.com/repos/sabondano/2048/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sabondano/2048/downloads","issues_url":"https://api.github.com/repos/sabondano/2048/issues{/number}","pulls_url":"https://api.github.com/repos/sabondano/2048/pulls{/number}","milestones_url":"https://api.github.com/repos/sabondano/2048/milestones{/number}","notifications_url":"https://api.github.com/repos/sabondano/2048/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sabondano/2048/labels{/name}","releases_url":"https://api.github.com/repos/sabondano/2048/releases{/id}","created_at":"2015-10-19T22:44:18Z","updated_at":"2015-10-20T20:48:52Z","pushed_at":"2015-10-24T20:30:23Z","git_url":"git://github.com/sabondano/2048.git","ssh_url":"git@github.com:sabondano/2048.git","clone_url":"https://github.com/sabondano/2048.git","svn_url":"https://github.com/sabondano/2048","homepage":null,"size":437,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sabondano/2048/pulls/17"},"html":{"href":"https://github.com/sabondano/2048/pull/17"},"issue":{"href":"https://api.github.com/repos/sabondano/2048/issues/17"},"comments":{"href":"https://api.github.com/repos/sabondano/2048/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/sabondano/2048/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/sabondano/2048/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sabondano/2048/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/sabondano/2048/statuses/6c63a175a972c19bd74dcc2701b3bde392ed0933"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mrjaimisra","id":8093774,"avatar_url":"https://avatars.githubusercontent.com/u/8093774?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjaimisra","html_url":"https://github.com/mrjaimisra","followers_url":"https://api.github.com/users/mrjaimisra/followers","following_url":"https://api.github.com/users/mrjaimisra/following{/other_user}","gists_url":"https://api.github.com/users/mrjaimisra/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjaimisra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjaimisra/subscriptions","organizations_url":"https://api.github.com/users/mrjaimisra/orgs","repos_url":"https://api.github.com/users/mrjaimisra/repos","events_url":"https://api.github.com/users/mrjaimisra/events{/privacy}","received_events_url":"https://api.github.com/users/mrjaimisra/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":62,"deletions":15,"changed_files":4}}