{"action":"closed","number":12,"pull_request":{"url":"https://api.github.com/repos/vetrolamu/code-test-javascript/pulls/12","id":88580232,"html_url":"https://github.com/vetrolamu/code-test-javascript/pull/12","diff_url":"https://github.com/vetrolamu/code-test-javascript/pull/12.diff","patch_url":"https://github.com/vetrolamu/code-test-javascript/pull/12.patch","issue_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/issues/12","number":12,"state":"closed","locked":false,"title":"[fix] More safe updater and getNextPosition decomposition","user":{"login":"vetrolamu","id":4096435,"avatar_url":"https://avatars.githubusercontent.com/u/4096435?v=3","gravatar_id":"","url":"https://api.github.com/users/vetrolamu","html_url":"https://github.com/vetrolamu","followers_url":"https://api.github.com/users/vetrolamu/followers","following_url":"https://api.github.com/users/vetrolamu/following{/other_user}","gists_url":"https://api.github.com/users/vetrolamu/gists{/gist_id}","starred_url":"https://api.github.com/users/vetrolamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vetrolamu/subscriptions","organizations_url":"https://api.github.com/users/vetrolamu/orgs","repos_url":"https://api.github.com/users/vetrolamu/repos","events_url":"https://api.github.com/users/vetrolamu/events{/privacy}","received_events_url":"https://api.github.com/users/vetrolamu/received_events","type":"User","site_admin":false},"body":"1. Fixed dangerous place in updater\r\n2. Decomposed `getNextPosition`. Now it's more clean and simple. Also it's simple to add features like \"skip roll\".","created_at":"2016-10-09T13:07:45Z","updated_at":"2016-10-09T13:08:17Z","closed_at":"2016-10-09T13:08:17Z","merged_at":"2016-10-09T13:08:17Z","merge_commit_sha":"1912c063f22419c4fc8305a50dd57916fb296995","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/pulls/12/commits","review_comments_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/pulls/12/comments","review_comment_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/issues/12/comments","statuses_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/statuses/70bd158974613979cae523b23f9d3cbabeb8817e","head":{"label":"vetrolamu:safety-and-decomposition","ref":"safety-and-decomposition","sha":"70bd158974613979cae523b23f9d3cbabeb8817e","user":{"login":"vetrolamu","id":4096435,"avatar_url":"https://avatars.githubusercontent.com/u/4096435?v=3","gravatar_id":"","url":"https://api.github.com/users/vetrolamu","html_url":"https://github.com/vetrolamu","followers_url":"https://api.github.com/users/vetrolamu/followers","following_url":"https://api.github.com/users/vetrolamu/following{/other_user}","gists_url":"https://api.github.com/users/vetrolamu/gists{/gist_id}","starred_url":"https://api.github.com/users/vetrolamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vetrolamu/subscriptions","organizations_url":"https://api.github.com/users/vetrolamu/orgs","repos_url":"https://api.github.com/users/vetrolamu/repos","events_url":"https://api.github.com/users/vetrolamu/events{/privacy}","received_events_url":"https://api.github.com/users/vetrolamu/received_events","type":"User","site_admin":false},"repo":{"id":69943533,"name":"code-test-javascript","full_name":"vetrolamu/code-test-javascript","owner":{"login":"vetrolamu","id":4096435,"avatar_url":"https://avatars.githubusercontent.com/u/4096435?v=3","gravatar_id":"","url":"https://api.github.com/users/vetrolamu","html_url":"https://github.com/vetrolamu","followers_url":"https://api.github.com/users/vetrolamu/followers","following_url":"https://api.github.com/users/vetrolamu/following{/other_user}","gists_url":"https://api.github.com/users/vetrolamu/gists{/gist_id}","starred_url":"https://api.github.com/users/vetrolamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vetrolamu/subscriptions","organizations_url":"https://api.github.com/users/vetrolamu/orgs","repos_url":"https://api.github.com/users/vetrolamu/repos","events_url":"https://api.github.com/users/vetrolamu/events{/privacy}","received_events_url":"https://api.github.com/users/vetrolamu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vetrolamu/code-test-javascript","description":null,"fork":true,"url":"https://api.github.com/repos/vetrolamu/code-test-javascript","forks_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/forks","keys_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/teams","hooks_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/hooks","issue_events_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/issues/events{/number}","events_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/events","assignees_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/assignees{/user}","branches_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/branches{/branch}","tags_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/tags","blobs_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/git/refs{/sha}","trees_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/statuses/{sha}","languages_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/languages","stargazers_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/stargazers","contributors_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/contributors","subscribers_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/subscribers","subscription_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/subscription","commits_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/commits{/sha}","git_commits_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/git/commits{/sha}","comments_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/comments{/number}","issue_comment_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/issues/comments{/number}","contents_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/contents/{+path}","compare_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/merges","archive_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/downloads","issues_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/issues{/number}","pulls_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/pulls{/number}","milestones_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/milestones{/number}","notifications_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/labels{/name}","releases_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/releases{/id}","deployments_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/deployments","created_at":"2016-10-04T07:40:05Z","updated_at":"2016-10-05T20:35:08Z","pushed_at":"2016-10-09T13:08:17Z","git_url":"git://github.com/vetrolamu/code-test-javascript.git","ssh_url":"git@github.com:vetrolamu/code-test-javascript.git","clone_url":"https://github.com/vetrolamu/code-test-javascript.git","svn_url":"https://github.com/vetrolamu/code-test-javascript","homepage":null,"size":34,"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":"vetrolamu:master","ref":"master","sha":"9594662e0b804cd66b21ad72f71d24b16c2436f1","user":{"login":"vetrolamu","id":4096435,"avatar_url":"https://avatars.githubusercontent.com/u/4096435?v=3","gravatar_id":"","url":"https://api.github.com/users/vetrolamu","html_url":"https://github.com/vetrolamu","followers_url":"https://api.github.com/users/vetrolamu/followers","following_url":"https://api.github.com/users/vetrolamu/following{/other_user}","gists_url":"https://api.github.com/users/vetrolamu/gists{/gist_id}","starred_url":"https://api.github.com/users/vetrolamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vetrolamu/subscriptions","organizations_url":"https://api.github.com/users/vetrolamu/orgs","repos_url":"https://api.github.com/users/vetrolamu/repos","events_url":"https://api.github.com/users/vetrolamu/events{/privacy}","received_events_url":"https://api.github.com/users/vetrolamu/received_events","type":"User","site_admin":false},"repo":{"id":69943533,"name":"code-test-javascript","full_name":"vetrolamu/code-test-javascript","owner":{"login":"vetrolamu","id":4096435,"avatar_url":"https://avatars.githubusercontent.com/u/4096435?v=3","gravatar_id":"","url":"https://api.github.com/users/vetrolamu","html_url":"https://github.com/vetrolamu","followers_url":"https://api.github.com/users/vetrolamu/followers","following_url":"https://api.github.com/users/vetrolamu/following{/other_user}","gists_url":"https://api.github.com/users/vetrolamu/gists{/gist_id}","starred_url":"https://api.github.com/users/vetrolamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vetrolamu/subscriptions","organizations_url":"https://api.github.com/users/vetrolamu/orgs","repos_url":"https://api.github.com/users/vetrolamu/repos","events_url":"https://api.github.com/users/vetrolamu/events{/privacy}","received_events_url":"https://api.github.com/users/vetrolamu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vetrolamu/code-test-javascript","description":null,"fork":true,"url":"https://api.github.com/repos/vetrolamu/code-test-javascript","forks_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/forks","keys_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/teams","hooks_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/hooks","issue_events_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/issues/events{/number}","events_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/events","assignees_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/assignees{/user}","branches_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/branches{/branch}","tags_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/tags","blobs_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/git/refs{/sha}","trees_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/statuses/{sha}","languages_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/languages","stargazers_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/stargazers","contributors_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/contributors","subscribers_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/subscribers","subscription_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/subscription","commits_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/commits{/sha}","git_commits_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/git/commits{/sha}","comments_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/comments{/number}","issue_comment_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/issues/comments{/number}","contents_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/contents/{+path}","compare_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/merges","archive_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/downloads","issues_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/issues{/number}","pulls_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/pulls{/number}","milestones_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/milestones{/number}","notifications_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/labels{/name}","releases_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/releases{/id}","deployments_url":"https://api.github.com/repos/vetrolamu/code-test-javascript/deployments","created_at":"2016-10-04T07:40:05Z","updated_at":"2016-10-05T20:35:08Z","pushed_at":"2016-10-09T13:08:17Z","git_url":"git://github.com/vetrolamu/code-test-javascript.git","ssh_url":"git@github.com:vetrolamu/code-test-javascript.git","clone_url":"https://github.com/vetrolamu/code-test-javascript.git","svn_url":"https://github.com/vetrolamu/code-test-javascript","homepage":null,"size":34,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/vetrolamu/code-test-javascript/pulls/12"},"html":{"href":"https://github.com/vetrolamu/code-test-javascript/pull/12"},"issue":{"href":"https://api.github.com/repos/vetrolamu/code-test-javascript/issues/12"},"comments":{"href":"https://api.github.com/repos/vetrolamu/code-test-javascript/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/vetrolamu/code-test-javascript/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/vetrolamu/code-test-javascript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vetrolamu/code-test-javascript/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/vetrolamu/code-test-javascript/statuses/70bd158974613979cae523b23f9d3cbabeb8817e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"vetrolamu","id":4096435,"avatar_url":"https://avatars.githubusercontent.com/u/4096435?v=3","gravatar_id":"","url":"https://api.github.com/users/vetrolamu","html_url":"https://github.com/vetrolamu","followers_url":"https://api.github.com/users/vetrolamu/followers","following_url":"https://api.github.com/users/vetrolamu/following{/other_user}","gists_url":"https://api.github.com/users/vetrolamu/gists{/gist_id}","starred_url":"https://api.github.com/users/vetrolamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vetrolamu/subscriptions","organizations_url":"https://api.github.com/users/vetrolamu/orgs","repos_url":"https://api.github.com/users/vetrolamu/repos","events_url":"https://api.github.com/users/vetrolamu/events{/privacy}","received_events_url":"https://api.github.com/users/vetrolamu/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":36,"deletions":17,"changed_files":1}}
{"actor":{"display_login":"vetrolamu"}}