{"action":"closed","number":293,"pull_request":{"url":"https://api.github.com/repos/pgte/nock/pulls/293","id":32125717,"html_url":"https://github.com/pgte/nock/pull/293","diff_url":"https://github.com/pgte/nock/pull/293.diff","patch_url":"https://github.com/pgte/nock/pull/293.patch","issue_url":"https://api.github.com/repos/pgte/nock/issues/293","number":293,"state":"closed","locked":false,"title":"add syntax sugar for basic auth","user":{"login":"jfromaniello","id":178512,"avatar_url":"https://avatars.githubusercontent.com/u/178512?v=3","gravatar_id":"","url":"https://api.github.com/users/jfromaniello","html_url":"https://github.com/jfromaniello","followers_url":"https://api.github.com/users/jfromaniello/followers","following_url":"https://api.github.com/users/jfromaniello/following{/other_user}","gists_url":"https://api.github.com/users/jfromaniello/gists{/gist_id}","starred_url":"https://api.github.com/users/jfromaniello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfromaniello/subscriptions","organizations_url":"https://api.github.com/users/jfromaniello/orgs","repos_url":"https://api.github.com/users/jfromaniello/repos","events_url":"https://api.github.com/users/jfromaniello/events{/privacy}","received_events_url":"https://api.github.com/users/jfromaniello/received_events","type":"User","site_admin":false},"body":"This PR adds some syntax sugar for basic authentication:\r\n```js\r\nnock('http://super-secure.com')\r\n    .get('/test')\r\n    .basicAuth({ user: 'foo', pass: 'bar' })\r\n    .reply(200, 'Here is the content');\r\n```","created_at":"2015-03-27T17:02:48Z","updated_at":"2015-03-27T17:28:36Z","closed_at":"2015-03-27T17:28:36Z","merged_at":"2015-03-27T17:28:36Z","merge_commit_sha":"cae5b9f926ef0707f4ff11e464a2a751ee72aebb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pgte/nock/pulls/293/commits","review_comments_url":"https://api.github.com/repos/pgte/nock/pulls/293/comments","review_comment_url":"https://api.github.com/repos/pgte/nock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pgte/nock/issues/293/comments","statuses_url":"https://api.github.com/repos/pgte/nock/statuses/2e2e0d12ffdfd9ea1995f47ee6939e2278a4d8a8","head":{"label":"jfromaniello:basic_auth_sugar","ref":"basic_auth_sugar","sha":"2e2e0d12ffdfd9ea1995f47ee6939e2278a4d8a8","user":{"login":"jfromaniello","id":178512,"avatar_url":"https://avatars.githubusercontent.com/u/178512?v=3","gravatar_id":"","url":"https://api.github.com/users/jfromaniello","html_url":"https://github.com/jfromaniello","followers_url":"https://api.github.com/users/jfromaniello/followers","following_url":"https://api.github.com/users/jfromaniello/following{/other_user}","gists_url":"https://api.github.com/users/jfromaniello/gists{/gist_id}","starred_url":"https://api.github.com/users/jfromaniello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfromaniello/subscriptions","organizations_url":"https://api.github.com/users/jfromaniello/orgs","repos_url":"https://api.github.com/users/jfromaniello/repos","events_url":"https://api.github.com/users/jfromaniello/events{/privacy}","received_events_url":"https://api.github.com/users/jfromaniello/received_events","type":"User","site_admin":false},"repo":{"id":32998240,"name":"nock","full_name":"jfromaniello/nock","owner":{"login":"jfromaniello","id":178512,"avatar_url":"https://avatars.githubusercontent.com/u/178512?v=3","gravatar_id":"","url":"https://api.github.com/users/jfromaniello","html_url":"https://github.com/jfromaniello","followers_url":"https://api.github.com/users/jfromaniello/followers","following_url":"https://api.github.com/users/jfromaniello/following{/other_user}","gists_url":"https://api.github.com/users/jfromaniello/gists{/gist_id}","starred_url":"https://api.github.com/users/jfromaniello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfromaniello/subscriptions","organizations_url":"https://api.github.com/users/jfromaniello/orgs","repos_url":"https://api.github.com/users/jfromaniello/repos","events_url":"https://api.github.com/users/jfromaniello/events{/privacy}","received_events_url":"https://api.github.com/users/jfromaniello/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jfromaniello/nock","description":"HTTP mocking and expectations library","fork":true,"url":"https://api.github.com/repos/jfromaniello/nock","forks_url":"https://api.github.com/repos/jfromaniello/nock/forks","keys_url":"https://api.github.com/repos/jfromaniello/nock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jfromaniello/nock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jfromaniello/nock/teams","hooks_url":"https://api.github.com/repos/jfromaniello/nock/hooks","issue_events_url":"https://api.github.com/repos/jfromaniello/nock/issues/events{/number}","events_url":"https://api.github.com/repos/jfromaniello/nock/events","assignees_url":"https://api.github.com/repos/jfromaniello/nock/assignees{/user}","branches_url":"https://api.github.com/repos/jfromaniello/nock/branches{/branch}","tags_url":"https://api.github.com/repos/jfromaniello/nock/tags","blobs_url":"https://api.github.com/repos/jfromaniello/nock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jfromaniello/nock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jfromaniello/nock/git/refs{/sha}","trees_url":"https://api.github.com/repos/jfromaniello/nock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jfromaniello/nock/statuses/{sha}","languages_url":"https://api.github.com/repos/jfromaniello/nock/languages","stargazers_url":"https://api.github.com/repos/jfromaniello/nock/stargazers","contributors_url":"https://api.github.com/repos/jfromaniello/nock/contributors","subscribers_url":"https://api.github.com/repos/jfromaniello/nock/subscribers","subscription_url":"https://api.github.com/repos/jfromaniello/nock/subscription","commits_url":"https://api.github.com/repos/jfromaniello/nock/commits{/sha}","git_commits_url":"https://api.github.com/repos/jfromaniello/nock/git/commits{/sha}","comments_url":"https://api.github.com/repos/jfromaniello/nock/comments{/number}","issue_comment_url":"https://api.github.com/repos/jfromaniello/nock/issues/comments{/number}","contents_url":"https://api.github.com/repos/jfromaniello/nock/contents/{+path}","compare_url":"https://api.github.com/repos/jfromaniello/nock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jfromaniello/nock/merges","archive_url":"https://api.github.com/repos/jfromaniello/nock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jfromaniello/nock/downloads","issues_url":"https://api.github.com/repos/jfromaniello/nock/issues{/number}","pulls_url":"https://api.github.com/repos/jfromaniello/nock/pulls{/number}","milestones_url":"https://api.github.com/repos/jfromaniello/nock/milestones{/number}","notifications_url":"https://api.github.com/repos/jfromaniello/nock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jfromaniello/nock/labels{/name}","releases_url":"https://api.github.com/repos/jfromaniello/nock/releases{/id}","created_at":"2015-03-27T16:53:24Z","updated_at":"2015-03-27T16:53:24Z","pushed_at":"2015-03-27T17:01:39Z","git_url":"git://github.com/jfromaniello/nock.git","ssh_url":"git@github.com:jfromaniello/nock.git","clone_url":"https://github.com/jfromaniello/nock.git","svn_url":"https://github.com/jfromaniello/nock","homepage":"","size":2117,"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":"pgte:master","ref":"master","sha":"348f273df95f73df4b09632b025319310e12c07e","user":{"login":"pgte","id":47910,"avatar_url":"https://avatars.githubusercontent.com/u/47910?v=3","gravatar_id":"","url":"https://api.github.com/users/pgte","html_url":"https://github.com/pgte","followers_url":"https://api.github.com/users/pgte/followers","following_url":"https://api.github.com/users/pgte/following{/other_user}","gists_url":"https://api.github.com/users/pgte/gists{/gist_id}","starred_url":"https://api.github.com/users/pgte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgte/subscriptions","organizations_url":"https://api.github.com/users/pgte/orgs","repos_url":"https://api.github.com/users/pgte/repos","events_url":"https://api.github.com/users/pgte/events{/privacy}","received_events_url":"https://api.github.com/users/pgte/received_events","type":"User","site_admin":false},"repo":{"id":2436267,"name":"nock","full_name":"pgte/nock","owner":{"login":"pgte","id":47910,"avatar_url":"https://avatars.githubusercontent.com/u/47910?v=3","gravatar_id":"","url":"https://api.github.com/users/pgte","html_url":"https://github.com/pgte","followers_url":"https://api.github.com/users/pgte/followers","following_url":"https://api.github.com/users/pgte/following{/other_user}","gists_url":"https://api.github.com/users/pgte/gists{/gist_id}","starred_url":"https://api.github.com/users/pgte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgte/subscriptions","organizations_url":"https://api.github.com/users/pgte/orgs","repos_url":"https://api.github.com/users/pgte/repos","events_url":"https://api.github.com/users/pgte/events{/privacy}","received_events_url":"https://api.github.com/users/pgte/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pgte/nock","description":"HTTP mocking and expectations library","fork":false,"url":"https://api.github.com/repos/pgte/nock","forks_url":"https://api.github.com/repos/pgte/nock/forks","keys_url":"https://api.github.com/repos/pgte/nock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pgte/nock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pgte/nock/teams","hooks_url":"https://api.github.com/repos/pgte/nock/hooks","issue_events_url":"https://api.github.com/repos/pgte/nock/issues/events{/number}","events_url":"https://api.github.com/repos/pgte/nock/events","assignees_url":"https://api.github.com/repos/pgte/nock/assignees{/user}","branches_url":"https://api.github.com/repos/pgte/nock/branches{/branch}","tags_url":"https://api.github.com/repos/pgte/nock/tags","blobs_url":"https://api.github.com/repos/pgte/nock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pgte/nock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pgte/nock/git/refs{/sha}","trees_url":"https://api.github.com/repos/pgte/nock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pgte/nock/statuses/{sha}","languages_url":"https://api.github.com/repos/pgte/nock/languages","stargazers_url":"https://api.github.com/repos/pgte/nock/stargazers","contributors_url":"https://api.github.com/repos/pgte/nock/contributors","subscribers_url":"https://api.github.com/repos/pgte/nock/subscribers","subscription_url":"https://api.github.com/repos/pgte/nock/subscription","commits_url":"https://api.github.com/repos/pgte/nock/commits{/sha}","git_commits_url":"https://api.github.com/repos/pgte/nock/git/commits{/sha}","comments_url":"https://api.github.com/repos/pgte/nock/comments{/number}","issue_comment_url":"https://api.github.com/repos/pgte/nock/issues/comments{/number}","contents_url":"https://api.github.com/repos/pgte/nock/contents/{+path}","compare_url":"https://api.github.com/repos/pgte/nock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pgte/nock/merges","archive_url":"https://api.github.com/repos/pgte/nock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pgte/nock/downloads","issues_url":"https://api.github.com/repos/pgte/nock/issues{/number}","pulls_url":"https://api.github.com/repos/pgte/nock/pulls{/number}","milestones_url":"https://api.github.com/repos/pgte/nock/milestones{/number}","notifications_url":"https://api.github.com/repos/pgte/nock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pgte/nock/labels{/name}","releases_url":"https://api.github.com/repos/pgte/nock/releases{/id}","created_at":"2011-09-22T10:08:03Z","updated_at":"2015-03-27T17:28:36Z","pushed_at":"2015-03-27T17:28:36Z","git_url":"git://github.com/pgte/nock.git","ssh_url":"git@github.com:pgte/nock.git","clone_url":"https://github.com/pgte/nock.git","svn_url":"https://github.com/pgte/nock","homepage":"","size":2117,"stargazers_count":1948,"watchers_count":1948,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":165,"mirror_url":null,"open_issues_count":19,"forks":165,"open_issues":19,"watchers":1948,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pgte/nock/pulls/293"},"html":{"href":"https://github.com/pgte/nock/pull/293"},"issue":{"href":"https://api.github.com/repos/pgte/nock/issues/293"},"comments":{"href":"https://api.github.com/repos/pgte/nock/issues/293/comments"},"review_comments":{"href":"https://api.github.com/repos/pgte/nock/pulls/293/comments"},"review_comment":{"href":"https://api.github.com/repos/pgte/nock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pgte/nock/pulls/293/commits"},"statuses":{"href":"https://api.github.com/repos/pgte/nock/statuses/2e2e0d12ffdfd9ea1995f47ee6939e2278a4d8a8"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pgte","id":47910,"avatar_url":"https://avatars.githubusercontent.com/u/47910?v=3","gravatar_id":"","url":"https://api.github.com/users/pgte","html_url":"https://github.com/pgte","followers_url":"https://api.github.com/users/pgte/followers","following_url":"https://api.github.com/users/pgte/following{/other_user}","gists_url":"https://api.github.com/users/pgte/gists{/gist_id}","starred_url":"https://api.github.com/users/pgte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgte/subscriptions","organizations_url":"https://api.github.com/users/pgte/orgs","repos_url":"https://api.github.com/users/pgte/repos","events_url":"https://api.github.com/users/pgte/events{/privacy}","received_events_url":"https://api.github.com/users/pgte/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":65,"deletions":0,"changed_files":4}}