{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/equip/assist/pulls/1","id":63214017,"html_url":"https://github.com/equip/assist/pull/1","diff_url":"https://github.com/equip/assist/pull/1.diff","patch_url":"https://github.com/equip/assist/pull/1.patch","issue_url":"https://api.github.com/repos/equip/assist/issues/1","number":1,"state":"open","locked":false,"title":"Make head and tail calls more memory efficient","user":{"login":"cgray","id":3750843,"avatar_url":"https://avatars.githubusercontent.com/u/3750843?v=3","gravatar_id":"","url":"https://api.github.com/users/cgray","html_url":"https://github.com/cgray","followers_url":"https://api.github.com/users/cgray/followers","following_url":"https://api.github.com/users/cgray/following{/other_user}","gists_url":"https://api.github.com/users/cgray/gists{/gist_id}","starred_url":"https://api.github.com/users/cgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgray/subscriptions","organizations_url":"https://api.github.com/users/cgray/orgs","repos_url":"https://api.github.com/users/cgray/repos","events_url":"https://api.github.com/users/cgray/events{/privacy}","received_events_url":"https://api.github.com/users/cgray/received_events","type":"User","site_admin":false},"body":"Used array_slice instead of array_pop/array_shift to keep a copy of the source array from being created","created_at":"2016-03-17T12:20:23Z","updated_at":"2016-03-17T12:20:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/equip/assist/pulls/1/commits","review_comments_url":"https://api.github.com/repos/equip/assist/pulls/1/comments","review_comment_url":"https://api.github.com/repos/equip/assist/pulls/comments{/number}","comments_url":"https://api.github.com/repos/equip/assist/issues/1/comments","statuses_url":"https://api.github.com/repos/equip/assist/statuses/4bd61d39280c064917fe517200482649cfc179ff","head":{"label":"cgray:performance/improve-memory-usage-in-head-and-tail","ref":"performance/improve-memory-usage-in-head-and-tail","sha":"4bd61d39280c064917fe517200482649cfc179ff","user":{"login":"cgray","id":3750843,"avatar_url":"https://avatars.githubusercontent.com/u/3750843?v=3","gravatar_id":"","url":"https://api.github.com/users/cgray","html_url":"https://github.com/cgray","followers_url":"https://api.github.com/users/cgray/followers","following_url":"https://api.github.com/users/cgray/following{/other_user}","gists_url":"https://api.github.com/users/cgray/gists{/gist_id}","starred_url":"https://api.github.com/users/cgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgray/subscriptions","organizations_url":"https://api.github.com/users/cgray/orgs","repos_url":"https://api.github.com/users/cgray/repos","events_url":"https://api.github.com/users/cgray/events{/privacy}","received_events_url":"https://api.github.com/users/cgray/received_events","type":"User","site_admin":false},"repo":{"id":54115110,"name":"assist","full_name":"cgray/assist","owner":{"login":"cgray","id":3750843,"avatar_url":"https://avatars.githubusercontent.com/u/3750843?v=3","gravatar_id":"","url":"https://api.github.com/users/cgray","html_url":"https://github.com/cgray","followers_url":"https://api.github.com/users/cgray/followers","following_url":"https://api.github.com/users/cgray/following{/other_user}","gists_url":"https://api.github.com/users/cgray/gists{/gist_id}","starred_url":"https://api.github.com/users/cgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgray/subscriptions","organizations_url":"https://api.github.com/users/cgray/orgs","repos_url":"https://api.github.com/users/cgray/repos","events_url":"https://api.github.com/users/cgray/events{/privacy}","received_events_url":"https://api.github.com/users/cgray/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cgray/assist","description":"Everyone needs a little assistance!","fork":true,"url":"https://api.github.com/repos/cgray/assist","forks_url":"https://api.github.com/repos/cgray/assist/forks","keys_url":"https://api.github.com/repos/cgray/assist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cgray/assist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cgray/assist/teams","hooks_url":"https://api.github.com/repos/cgray/assist/hooks","issue_events_url":"https://api.github.com/repos/cgray/assist/issues/events{/number}","events_url":"https://api.github.com/repos/cgray/assist/events","assignees_url":"https://api.github.com/repos/cgray/assist/assignees{/user}","branches_url":"https://api.github.com/repos/cgray/assist/branches{/branch}","tags_url":"https://api.github.com/repos/cgray/assist/tags","blobs_url":"https://api.github.com/repos/cgray/assist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cgray/assist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cgray/assist/git/refs{/sha}","trees_url":"https://api.github.com/repos/cgray/assist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cgray/assist/statuses/{sha}","languages_url":"https://api.github.com/repos/cgray/assist/languages","stargazers_url":"https://api.github.com/repos/cgray/assist/stargazers","contributors_url":"https://api.github.com/repos/cgray/assist/contributors","subscribers_url":"https://api.github.com/repos/cgray/assist/subscribers","subscription_url":"https://api.github.com/repos/cgray/assist/subscription","commits_url":"https://api.github.com/repos/cgray/assist/commits{/sha}","git_commits_url":"https://api.github.com/repos/cgray/assist/git/commits{/sha}","comments_url":"https://api.github.com/repos/cgray/assist/comments{/number}","issue_comment_url":"https://api.github.com/repos/cgray/assist/issues/comments{/number}","contents_url":"https://api.github.com/repos/cgray/assist/contents/{+path}","compare_url":"https://api.github.com/repos/cgray/assist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cgray/assist/merges","archive_url":"https://api.github.com/repos/cgray/assist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cgray/assist/downloads","issues_url":"https://api.github.com/repos/cgray/assist/issues{/number}","pulls_url":"https://api.github.com/repos/cgray/assist/pulls{/number}","milestones_url":"https://api.github.com/repos/cgray/assist/milestones{/number}","notifications_url":"https://api.github.com/repos/cgray/assist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cgray/assist/labels{/name}","releases_url":"https://api.github.com/repos/cgray/assist/releases{/id}","deployments_url":"https://api.github.com/repos/cgray/assist/deployments","created_at":"2016-03-17T12:12:13Z","updated_at":"2016-03-17T12:12:13Z","pushed_at":"2016-03-17T12:19:11Z","git_url":"git://github.com/cgray/assist.git","ssh_url":"git@github.com:cgray/assist.git","clone_url":"https://github.com/cgray/assist.git","svn_url":"https://github.com/cgray/assist","homepage":"","size":7,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"equip:master","ref":"master","sha":"071a968a634d26666169b41b444c2e696ef577f7","user":{"login":"equip","id":16503086,"avatar_url":"https://avatars.githubusercontent.com/u/16503086?v=3","gravatar_id":"","url":"https://api.github.com/users/equip","html_url":"https://github.com/equip","followers_url":"https://api.github.com/users/equip/followers","following_url":"https://api.github.com/users/equip/following{/other_user}","gists_url":"https://api.github.com/users/equip/gists{/gist_id}","starred_url":"https://api.github.com/users/equip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equip/subscriptions","organizations_url":"https://api.github.com/users/equip/orgs","repos_url":"https://api.github.com/users/equip/repos","events_url":"https://api.github.com/users/equip/events{/privacy}","received_events_url":"https://api.github.com/users/equip/received_events","type":"Organization","site_admin":false},"repo":{"id":53988540,"name":"assist","full_name":"equip/assist","owner":{"login":"equip","id":16503086,"avatar_url":"https://avatars.githubusercontent.com/u/16503086?v=3","gravatar_id":"","url":"https://api.github.com/users/equip","html_url":"https://github.com/equip","followers_url":"https://api.github.com/users/equip/followers","following_url":"https://api.github.com/users/equip/following{/other_user}","gists_url":"https://api.github.com/users/equip/gists{/gist_id}","starred_url":"https://api.github.com/users/equip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equip/subscriptions","organizations_url":"https://api.github.com/users/equip/orgs","repos_url":"https://api.github.com/users/equip/repos","events_url":"https://api.github.com/users/equip/events{/privacy}","received_events_url":"https://api.github.com/users/equip/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/equip/assist","description":"Everyone needs a little assistance!","fork":false,"url":"https://api.github.com/repos/equip/assist","forks_url":"https://api.github.com/repos/equip/assist/forks","keys_url":"https://api.github.com/repos/equip/assist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/equip/assist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/equip/assist/teams","hooks_url":"https://api.github.com/repos/equip/assist/hooks","issue_events_url":"https://api.github.com/repos/equip/assist/issues/events{/number}","events_url":"https://api.github.com/repos/equip/assist/events","assignees_url":"https://api.github.com/repos/equip/assist/assignees{/user}","branches_url":"https://api.github.com/repos/equip/assist/branches{/branch}","tags_url":"https://api.github.com/repos/equip/assist/tags","blobs_url":"https://api.github.com/repos/equip/assist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/equip/assist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/equip/assist/git/refs{/sha}","trees_url":"https://api.github.com/repos/equip/assist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/equip/assist/statuses/{sha}","languages_url":"https://api.github.com/repos/equip/assist/languages","stargazers_url":"https://api.github.com/repos/equip/assist/stargazers","contributors_url":"https://api.github.com/repos/equip/assist/contributors","subscribers_url":"https://api.github.com/repos/equip/assist/subscribers","subscription_url":"https://api.github.com/repos/equip/assist/subscription","commits_url":"https://api.github.com/repos/equip/assist/commits{/sha}","git_commits_url":"https://api.github.com/repos/equip/assist/git/commits{/sha}","comments_url":"https://api.github.com/repos/equip/assist/comments{/number}","issue_comment_url":"https://api.github.com/repos/equip/assist/issues/comments{/number}","contents_url":"https://api.github.com/repos/equip/assist/contents/{+path}","compare_url":"https://api.github.com/repos/equip/assist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/equip/assist/merges","archive_url":"https://api.github.com/repos/equip/assist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/equip/assist/downloads","issues_url":"https://api.github.com/repos/equip/assist/issues{/number}","pulls_url":"https://api.github.com/repos/equip/assist/pulls{/number}","milestones_url":"https://api.github.com/repos/equip/assist/milestones{/number}","notifications_url":"https://api.github.com/repos/equip/assist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/equip/assist/labels{/name}","releases_url":"https://api.github.com/repos/equip/assist/releases{/id}","deployments_url":"https://api.github.com/repos/equip/assist/deployments","created_at":"2016-03-16T00:34:27Z","updated_at":"2016-03-16T01:03:52Z","pushed_at":"2016-03-16T01:20:44Z","git_url":"git://github.com/equip/assist.git","ssh_url":"git@github.com:equip/assist.git","clone_url":"https://github.com/equip/assist.git","svn_url":"https://github.com/equip/assist","homepage":"","size":7,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/equip/assist/pulls/1"},"html":{"href":"https://github.com/equip/assist/pull/1"},"issue":{"href":"https://api.github.com/repos/equip/assist/issues/1"},"comments":{"href":"https://api.github.com/repos/equip/assist/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/equip/assist/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/equip/assist/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/equip/assist/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/equip/assist/statuses/4bd61d39280c064917fe517200482649cfc179ff"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}