{"action":"closed","number":161,"pull_request":{"url":"https://api.github.com/repos/silverorange/site/pulls/161","id":59670273,"html_url":"https://github.com/silverorange/site/pull/161","diff_url":"https://github.com/silverorange/site/pull/161.diff","patch_url":"https://github.com/silverorange/site/pull/161.patch","issue_url":"https://api.github.com/repos/silverorange/site/issues/161","number":161,"state":"closed","locked":false,"title":"Add a relocateWithQueryString() method for convenience","user":{"login":"isaacgrant","id":49716,"avatar_url":"https://avatars.githubusercontent.com/u/49716?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacgrant","html_url":"https://github.com/isaacgrant","followers_url":"https://api.github.com/users/isaacgrant/followers","following_url":"https://api.github.com/users/isaacgrant/following{/other_user}","gists_url":"https://api.github.com/users/isaacgrant/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacgrant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacgrant/subscriptions","organizations_url":"https://api.github.com/users/isaacgrant/orgs","repos_url":"https://api.github.com/users/isaacgrant/repos","events_url":"https://api.github.com/users/isaacgrant/events{/privacy}","received_events_url":"https://api.github.com/users/isaacgrant/received_events","type":"User","site_admin":false},"body":"We use this pattern in a number of places, such a promotion code landing pages where we want to apply a code to the session, and then relocate while maintaining most of the query string passed to the page.","created_at":"2016-02-17T16:31:56Z","updated_at":"2016-02-19T16:25:51Z","closed_at":"2016-02-19T16:25:51Z","merged_at":"2016-02-19T16:25:51Z","merge_commit_sha":"30921d19fcb2b316c3a20c88e758c9b31401f1b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/silverorange/site/pulls/161/commits","review_comments_url":"https://api.github.com/repos/silverorange/site/pulls/161/comments","review_comment_url":"https://api.github.com/repos/silverorange/site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/silverorange/site/issues/161/comments","statuses_url":"https://api.github.com/repos/silverorange/site/statuses/59d2d0c1709f5c26ba6e874f2e2ad1763c99905a","head":{"label":"isaacgrant:relocate-with-query-string-in-one-place","ref":"relocate-with-query-string-in-one-place","sha":"59d2d0c1709f5c26ba6e874f2e2ad1763c99905a","user":{"login":"isaacgrant","id":49716,"avatar_url":"https://avatars.githubusercontent.com/u/49716?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacgrant","html_url":"https://github.com/isaacgrant","followers_url":"https://api.github.com/users/isaacgrant/followers","following_url":"https://api.github.com/users/isaacgrant/following{/other_user}","gists_url":"https://api.github.com/users/isaacgrant/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacgrant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacgrant/subscriptions","organizations_url":"https://api.github.com/users/isaacgrant/orgs","repos_url":"https://api.github.com/users/isaacgrant/repos","events_url":"https://api.github.com/users/isaacgrant/events{/privacy}","received_events_url":"https://api.github.com/users/isaacgrant/received_events","type":"User","site_admin":false},"repo":{"id":11505535,"name":"site","full_name":"isaacgrant/site","owner":{"login":"isaacgrant","id":49716,"avatar_url":"https://avatars.githubusercontent.com/u/49716?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacgrant","html_url":"https://github.com/isaacgrant","followers_url":"https://api.github.com/users/isaacgrant/followers","following_url":"https://api.github.com/users/isaacgrant/following{/other_user}","gists_url":"https://api.github.com/users/isaacgrant/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacgrant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacgrant/subscriptions","organizations_url":"https://api.github.com/users/isaacgrant/orgs","repos_url":"https://api.github.com/users/isaacgrant/repos","events_url":"https://api.github.com/users/isaacgrant/events{/privacy}","received_events_url":"https://api.github.com/users/isaacgrant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/isaacgrant/site","description":"","fork":true,"url":"https://api.github.com/repos/isaacgrant/site","forks_url":"https://api.github.com/repos/isaacgrant/site/forks","keys_url":"https://api.github.com/repos/isaacgrant/site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/isaacgrant/site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/isaacgrant/site/teams","hooks_url":"https://api.github.com/repos/isaacgrant/site/hooks","issue_events_url":"https://api.github.com/repos/isaacgrant/site/issues/events{/number}","events_url":"https://api.github.com/repos/isaacgrant/site/events","assignees_url":"https://api.github.com/repos/isaacgrant/site/assignees{/user}","branches_url":"https://api.github.com/repos/isaacgrant/site/branches{/branch}","tags_url":"https://api.github.com/repos/isaacgrant/site/tags","blobs_url":"https://api.github.com/repos/isaacgrant/site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/isaacgrant/site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/isaacgrant/site/git/refs{/sha}","trees_url":"https://api.github.com/repos/isaacgrant/site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/isaacgrant/site/statuses/{sha}","languages_url":"https://api.github.com/repos/isaacgrant/site/languages","stargazers_url":"https://api.github.com/repos/isaacgrant/site/stargazers","contributors_url":"https://api.github.com/repos/isaacgrant/site/contributors","subscribers_url":"https://api.github.com/repos/isaacgrant/site/subscribers","subscription_url":"https://api.github.com/repos/isaacgrant/site/subscription","commits_url":"https://api.github.com/repos/isaacgrant/site/commits{/sha}","git_commits_url":"https://api.github.com/repos/isaacgrant/site/git/commits{/sha}","comments_url":"https://api.github.com/repos/isaacgrant/site/comments{/number}","issue_comment_url":"https://api.github.com/repos/isaacgrant/site/issues/comments{/number}","contents_url":"https://api.github.com/repos/isaacgrant/site/contents/{+path}","compare_url":"https://api.github.com/repos/isaacgrant/site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/isaacgrant/site/merges","archive_url":"https://api.github.com/repos/isaacgrant/site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/isaacgrant/site/downloads","issues_url":"https://api.github.com/repos/isaacgrant/site/issues{/number}","pulls_url":"https://api.github.com/repos/isaacgrant/site/pulls{/number}","milestones_url":"https://api.github.com/repos/isaacgrant/site/milestones{/number}","notifications_url":"https://api.github.com/repos/isaacgrant/site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/isaacgrant/site/labels{/name}","releases_url":"https://api.github.com/repos/isaacgrant/site/releases{/id}","deployments_url":"https://api.github.com/repos/isaacgrant/site/deployments","created_at":"2013-07-18T14:54:34Z","updated_at":"2015-03-30T23:24:46Z","pushed_at":"2016-02-19T15:20:02Z","git_url":"git://github.com/isaacgrant/site.git","ssh_url":"git@github.com:isaacgrant/site.git","clone_url":"https://github.com/isaacgrant/site.git","svn_url":"https://github.com/isaacgrant/site","homepage":null,"size":6833,"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":"silverorange:master","ref":"master","sha":"cf1f94f4d5accdbab0cb0f19cb1f33ff01fedff4","user":{"login":"silverorange","id":1337129,"avatar_url":"https://avatars.githubusercontent.com/u/1337129?v=3","gravatar_id":"","url":"https://api.github.com/users/silverorange","html_url":"https://github.com/silverorange","followers_url":"https://api.github.com/users/silverorange/followers","following_url":"https://api.github.com/users/silverorange/following{/other_user}","gists_url":"https://api.github.com/users/silverorange/gists{/gist_id}","starred_url":"https://api.github.com/users/silverorange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverorange/subscriptions","organizations_url":"https://api.github.com/users/silverorange/orgs","repos_url":"https://api.github.com/users/silverorange/repos","events_url":"https://api.github.com/users/silverorange/events{/privacy}","received_events_url":"https://api.github.com/users/silverorange/received_events","type":"Organization","site_admin":false},"repo":{"id":11500586,"name":"site","full_name":"silverorange/site","owner":{"login":"silverorange","id":1337129,"avatar_url":"https://avatars.githubusercontent.com/u/1337129?v=3","gravatar_id":"","url":"https://api.github.com/users/silverorange","html_url":"https://github.com/silverorange","followers_url":"https://api.github.com/users/silverorange/followers","following_url":"https://api.github.com/users/silverorange/following{/other_user}","gists_url":"https://api.github.com/users/silverorange/gists{/gist_id}","starred_url":"https://api.github.com/users/silverorange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverorange/subscriptions","organizations_url":"https://api.github.com/users/silverorange/orgs","repos_url":"https://api.github.com/users/silverorange/repos","events_url":"https://api.github.com/users/silverorange/events{/privacy}","received_events_url":"https://api.github.com/users/silverorange/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/silverorange/site","description":"Website framework.","fork":false,"url":"https://api.github.com/repos/silverorange/site","forks_url":"https://api.github.com/repos/silverorange/site/forks","keys_url":"https://api.github.com/repos/silverorange/site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silverorange/site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silverorange/site/teams","hooks_url":"https://api.github.com/repos/silverorange/site/hooks","issue_events_url":"https://api.github.com/repos/silverorange/site/issues/events{/number}","events_url":"https://api.github.com/repos/silverorange/site/events","assignees_url":"https://api.github.com/repos/silverorange/site/assignees{/user}","branches_url":"https://api.github.com/repos/silverorange/site/branches{/branch}","tags_url":"https://api.github.com/repos/silverorange/site/tags","blobs_url":"https://api.github.com/repos/silverorange/site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silverorange/site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silverorange/site/git/refs{/sha}","trees_url":"https://api.github.com/repos/silverorange/site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silverorange/site/statuses/{sha}","languages_url":"https://api.github.com/repos/silverorange/site/languages","stargazers_url":"https://api.github.com/repos/silverorange/site/stargazers","contributors_url":"https://api.github.com/repos/silverorange/site/contributors","subscribers_url":"https://api.github.com/repos/silverorange/site/subscribers","subscription_url":"https://api.github.com/repos/silverorange/site/subscription","commits_url":"https://api.github.com/repos/silverorange/site/commits{/sha}","git_commits_url":"https://api.github.com/repos/silverorange/site/git/commits{/sha}","comments_url":"https://api.github.com/repos/silverorange/site/comments{/number}","issue_comment_url":"https://api.github.com/repos/silverorange/site/issues/comments{/number}","contents_url":"https://api.github.com/repos/silverorange/site/contents/{+path}","compare_url":"https://api.github.com/repos/silverorange/site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silverorange/site/merges","archive_url":"https://api.github.com/repos/silverorange/site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silverorange/site/downloads","issues_url":"https://api.github.com/repos/silverorange/site/issues{/number}","pulls_url":"https://api.github.com/repos/silverorange/site/pulls{/number}","milestones_url":"https://api.github.com/repos/silverorange/site/milestones{/number}","notifications_url":"https://api.github.com/repos/silverorange/site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silverorange/site/labels{/name}","releases_url":"https://api.github.com/repos/silverorange/site/releases{/id}","deployments_url":"https://api.github.com/repos/silverorange/site/deployments","created_at":"2013-07-18T10:51:43Z","updated_at":"2016-01-25T17:44:22Z","pushed_at":"2016-02-19T16:25:51Z","git_url":"git://github.com/silverorange/site.git","ssh_url":"git@github.com:silverorange/site.git","clone_url":"https://github.com/silverorange/site.git","svn_url":"https://github.com/silverorange/site","homepage":"","size":6905,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":8,"forks":9,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/silverorange/site/pulls/161"},"html":{"href":"https://github.com/silverorange/site/pull/161"},"issue":{"href":"https://api.github.com/repos/silverorange/site/issues/161"},"comments":{"href":"https://api.github.com/repos/silverorange/site/issues/161/comments"},"review_comments":{"href":"https://api.github.com/repos/silverorange/site/pulls/161/comments"},"review_comment":{"href":"https://api.github.com/repos/silverorange/site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/silverorange/site/pulls/161/commits"},"statuses":{"href":"https://api.github.com/repos/silverorange/site/statuses/59d2d0c1709f5c26ba6e874f2e2ad1763c99905a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"gauthierm","id":120511,"avatar_url":"https://avatars.githubusercontent.com/u/120511?v=3","gravatar_id":"","url":"https://api.github.com/users/gauthierm","html_url":"https://github.com/gauthierm","followers_url":"https://api.github.com/users/gauthierm/followers","following_url":"https://api.github.com/users/gauthierm/following{/other_user}","gists_url":"https://api.github.com/users/gauthierm/gists{/gist_id}","starred_url":"https://api.github.com/users/gauthierm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauthierm/subscriptions","organizations_url":"https://api.github.com/users/gauthierm/orgs","repos_url":"https://api.github.com/users/gauthierm/repos","events_url":"https://api.github.com/users/gauthierm/events{/privacy}","received_events_url":"https://api.github.com/users/gauthierm/received_events","type":"User","site_admin":false},"comments":2,"review_comments":8,"commits":3,"additions":47,"deletions":5,"changed_files":1}}