{"action":"created","comment":{"url":"https://api.github.com/repos/michael/github/pulls/comments/53565303","id":53565303,"diff_hunk":"@@ -425,6 +426,25 @@ describe('Creating new Github.Repository', function() {\n       });\n    });\n \n+   it('should merge pull requests on repo', function(done) {\n+      var repo = github.getRepo('michael', 'github');\n+      var expectedDocUrl = 'https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button';\n+\n+      repo.getPull(153, function(err, pull) {\n+         repo.mergePull(pull, function(err) {","path":"test/test.repo.js","position":17,"original_position":17,"commit_id":"8e1cb4b86a5f8544f3a198a9ed03aea2ff652eb5","original_commit_id":"8e1cb4b86a5f8544f3a198a9ed03aea2ff652eb5","user":{"login":"AurelioDeRosa","id":1430979,"avatar_url":"https://avatars.githubusercontent.com/u/1430979?v=3","gravatar_id":"","url":"https://api.github.com/users/AurelioDeRosa","html_url":"https://github.com/AurelioDeRosa","followers_url":"https://api.github.com/users/AurelioDeRosa/followers","following_url":"https://api.github.com/users/AurelioDeRosa/following{/other_user}","gists_url":"https://api.github.com/users/AurelioDeRosa/gists{/gist_id}","starred_url":"https://api.github.com/users/AurelioDeRosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AurelioDeRosa/subscriptions","organizations_url":"https://api.github.com/users/AurelioDeRosa/orgs","repos_url":"https://api.github.com/users/AurelioDeRosa/repos","events_url":"https://api.github.com/users/AurelioDeRosa/events{/privacy}","received_events_url":"https://api.github.com/users/AurelioDeRosa/received_events","type":"User","site_admin":false},"body":"I think we should have a test for the success of the merge of a pull request, not the failure. At the moment the test doesn't verify if the method is working correctly.","created_at":"2016-02-21T11:27:31Z","updated_at":"2016-02-21T11:27:31Z","html_url":"https://github.com/michael/github/pull/281#discussion_r53565303","pull_request_url":"https://api.github.com/repos/michael/github/pulls/281","_links":{"self":{"href":"https://api.github.com/repos/michael/github/pulls/comments/53565303"},"html":{"href":"https://github.com/michael/github/pull/281#discussion_r53565303"},"pull_request":{"href":"https://api.github.com/repos/michael/github/pulls/281"}}},"pull_request":{"url":"https://api.github.com/repos/michael/github/pulls/281","id":56686296,"html_url":"https://github.com/michael/github/pull/281","diff_url":"https://github.com/michael/github/pull/281.diff","patch_url":"https://github.com/michael/github/pull/281.patch","issue_url":"https://api.github.com/repos/michael/github/issues/281","number":281,"state":"open","locked":false,"title":"merge pull request","user":{"login":"benjamine","id":384553,"avatar_url":"https://avatars.githubusercontent.com/u/384553?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamine","html_url":"https://github.com/benjamine","followers_url":"https://api.github.com/users/benjamine/followers","following_url":"https://api.github.com/users/benjamine/following{/other_user}","gists_url":"https://api.github.com/users/benjamine/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamine/subscriptions","organizations_url":"https://api.github.com/users/benjamine/orgs","repos_url":"https://api.github.com/users/benjamine/repos","events_url":"https://api.github.com/users/benjamine/events{/privacy}","received_events_url":"https://api.github.com/users/benjamine/received_events","type":"User","site_admin":false},"body":"adding `repo.mergePull`\r\ndocs: https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button\r\n\r\nnote the unit test isn't really testing a succesful merge (but a failture to merge), given the destructive nature of that action I think that would require mocking of the github API, but that might be a big effort.\r\n\r\nps: this is a pull request to merge pull requests :open_mouth:","created_at":"2016-01-20T23:56:49Z","updated_at":"2016-02-21T11:27:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8235ad6bda5d0da71f1d9b14267f966c0e17de9","assignee":null,"milestone":{"url":"https://api.github.com/repos/michael/github/milestones/4","html_url":"https://github.com/michael/github/milestones/0.12.0","labels_url":"https://api.github.com/repos/michael/github/milestones/4/labels","id":1539452,"number":4,"title":"0.12.0","description":"","creator":{"login":"AurelioDeRosa","id":1430979,"avatar_url":"https://avatars.githubusercontent.com/u/1430979?v=3","gravatar_id":"","url":"https://api.github.com/users/AurelioDeRosa","html_url":"https://github.com/AurelioDeRosa","followers_url":"https://api.github.com/users/AurelioDeRosa/followers","following_url":"https://api.github.com/users/AurelioDeRosa/following{/other_user}","gists_url":"https://api.github.com/users/AurelioDeRosa/gists{/gist_id}","starred_url":"https://api.github.com/users/AurelioDeRosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AurelioDeRosa/subscriptions","organizations_url":"https://api.github.com/users/AurelioDeRosa/orgs","repos_url":"https://api.github.com/users/AurelioDeRosa/repos","events_url":"https://api.github.com/users/AurelioDeRosa/events{/privacy}","received_events_url":"https://api.github.com/users/AurelioDeRosa/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":3,"state":"open","created_at":"2016-01-24T17:56:15Z","updated_at":"2016-02-21T02:04:11Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/michael/github/pulls/281/commits","review_comments_url":"https://api.github.com/repos/michael/github/pulls/281/comments","review_comment_url":"https://api.github.com/repos/michael/github/pulls/comments{/number}","comments_url":"https://api.github.com/repos/michael/github/issues/281/comments","statuses_url":"https://api.github.com/repos/michael/github/statuses/8e1cb4b86a5f8544f3a198a9ed03aea2ff652eb5","head":{"label":"benjamine:feature/pull-request-merge","ref":"feature/pull-request-merge","sha":"8e1cb4b86a5f8544f3a198a9ed03aea2ff652eb5","user":{"login":"benjamine","id":384553,"avatar_url":"https://avatars.githubusercontent.com/u/384553?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamine","html_url":"https://github.com/benjamine","followers_url":"https://api.github.com/users/benjamine/followers","following_url":"https://api.github.com/users/benjamine/following{/other_user}","gists_url":"https://api.github.com/users/benjamine/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamine/subscriptions","organizations_url":"https://api.github.com/users/benjamine/orgs","repos_url":"https://api.github.com/users/benjamine/repos","events_url":"https://api.github.com/users/benjamine/events{/privacy}","received_events_url":"https://api.github.com/users/benjamine/received_events","type":"User","site_admin":false},"repo":{"id":50065147,"name":"github","full_name":"benjamine/github","owner":{"login":"benjamine","id":384553,"avatar_url":"https://avatars.githubusercontent.com/u/384553?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamine","html_url":"https://github.com/benjamine","followers_url":"https://api.github.com/users/benjamine/followers","following_url":"https://api.github.com/users/benjamine/following{/other_user}","gists_url":"https://api.github.com/users/benjamine/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamine/subscriptions","organizations_url":"https://api.github.com/users/benjamine/orgs","repos_url":"https://api.github.com/users/benjamine/repos","events_url":"https://api.github.com/users/benjamine/events{/privacy}","received_events_url":"https://api.github.com/users/benjamine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benjamine/github","description":"A higher-level wrapper around the Github API. Intended for the browser.","fork":true,"url":"https://api.github.com/repos/benjamine/github","forks_url":"https://api.github.com/repos/benjamine/github/forks","keys_url":"https://api.github.com/repos/benjamine/github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benjamine/github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benjamine/github/teams","hooks_url":"https://api.github.com/repos/benjamine/github/hooks","issue_events_url":"https://api.github.com/repos/benjamine/github/issues/events{/number}","events_url":"https://api.github.com/repos/benjamine/github/events","assignees_url":"https://api.github.com/repos/benjamine/github/assignees{/user}","branches_url":"https://api.github.com/repos/benjamine/github/branches{/branch}","tags_url":"https://api.github.com/repos/benjamine/github/tags","blobs_url":"https://api.github.com/repos/benjamine/github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benjamine/github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benjamine/github/git/refs{/sha}","trees_url":"https://api.github.com/repos/benjamine/github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benjamine/github/statuses/{sha}","languages_url":"https://api.github.com/repos/benjamine/github/languages","stargazers_url":"https://api.github.com/repos/benjamine/github/stargazers","contributors_url":"https://api.github.com/repos/benjamine/github/contributors","subscribers_url":"https://api.github.com/repos/benjamine/github/subscribers","subscription_url":"https://api.github.com/repos/benjamine/github/subscription","commits_url":"https://api.github.com/repos/benjamine/github/commits{/sha}","git_commits_url":"https://api.github.com/repos/benjamine/github/git/commits{/sha}","comments_url":"https://api.github.com/repos/benjamine/github/comments{/number}","issue_comment_url":"https://api.github.com/repos/benjamine/github/issues/comments{/number}","contents_url":"https://api.github.com/repos/benjamine/github/contents/{+path}","compare_url":"https://api.github.com/repos/benjamine/github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benjamine/github/merges","archive_url":"https://api.github.com/repos/benjamine/github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benjamine/github/downloads","issues_url":"https://api.github.com/repos/benjamine/github/issues{/number}","pulls_url":"https://api.github.com/repos/benjamine/github/pulls{/number}","milestones_url":"https://api.github.com/repos/benjamine/github/milestones{/number}","notifications_url":"https://api.github.com/repos/benjamine/github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benjamine/github/labels{/name}","releases_url":"https://api.github.com/repos/benjamine/github/releases{/id}","deployments_url":"https://api.github.com/repos/benjamine/github/deployments","created_at":"2016-01-20T22:33:58Z","updated_at":"2016-01-20T22:33:59Z","pushed_at":"2016-02-21T05:25:01Z","git_url":"git://github.com/benjamine/github.git","ssh_url":"git@github.com:benjamine/github.git","clone_url":"https://github.com/benjamine/github.git","svn_url":"https://github.com/benjamine/github","homepage":"","size":715,"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":"michael:master","ref":"master","sha":"9335b8cba34c387748915d30c7131cd3206d096c","user":{"login":"michael","id":2931,"avatar_url":"https://avatars.githubusercontent.com/u/2931?v=3","gravatar_id":"","url":"https://api.github.com/users/michael","html_url":"https://github.com/michael","followers_url":"https://api.github.com/users/michael/followers","following_url":"https://api.github.com/users/michael/following{/other_user}","gists_url":"https://api.github.com/users/michael/gists{/gist_id}","starred_url":"https://api.github.com/users/michael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael/subscriptions","organizations_url":"https://api.github.com/users/michael/orgs","repos_url":"https://api.github.com/users/michael/repos","events_url":"https://api.github.com/users/michael/events{/privacy}","received_events_url":"https://api.github.com/users/michael/received_events","type":"User","site_admin":false},"repo":{"id":3640925,"name":"github","full_name":"michael/github","owner":{"login":"michael","id":2931,"avatar_url":"https://avatars.githubusercontent.com/u/2931?v=3","gravatar_id":"","url":"https://api.github.com/users/michael","html_url":"https://github.com/michael","followers_url":"https://api.github.com/users/michael/followers","following_url":"https://api.github.com/users/michael/following{/other_user}","gists_url":"https://api.github.com/users/michael/gists{/gist_id}","starred_url":"https://api.github.com/users/michael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael/subscriptions","organizations_url":"https://api.github.com/users/michael/orgs","repos_url":"https://api.github.com/users/michael/repos","events_url":"https://api.github.com/users/michael/events{/privacy}","received_events_url":"https://api.github.com/users/michael/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michael/github","description":"A higher-level wrapper around the Github API. Intended for the browser.","fork":false,"url":"https://api.github.com/repos/michael/github","forks_url":"https://api.github.com/repos/michael/github/forks","keys_url":"https://api.github.com/repos/michael/github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michael/github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michael/github/teams","hooks_url":"https://api.github.com/repos/michael/github/hooks","issue_events_url":"https://api.github.com/repos/michael/github/issues/events{/number}","events_url":"https://api.github.com/repos/michael/github/events","assignees_url":"https://api.github.com/repos/michael/github/assignees{/user}","branches_url":"https://api.github.com/repos/michael/github/branches{/branch}","tags_url":"https://api.github.com/repos/michael/github/tags","blobs_url":"https://api.github.com/repos/michael/github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michael/github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michael/github/git/refs{/sha}","trees_url":"https://api.github.com/repos/michael/github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michael/github/statuses/{sha}","languages_url":"https://api.github.com/repos/michael/github/languages","stargazers_url":"https://api.github.com/repos/michael/github/stargazers","contributors_url":"https://api.github.com/repos/michael/github/contributors","subscribers_url":"https://api.github.com/repos/michael/github/subscribers","subscription_url":"https://api.github.com/repos/michael/github/subscription","commits_url":"https://api.github.com/repos/michael/github/commits{/sha}","git_commits_url":"https://api.github.com/repos/michael/github/git/commits{/sha}","comments_url":"https://api.github.com/repos/michael/github/comments{/number}","issue_comment_url":"https://api.github.com/repos/michael/github/issues/comments{/number}","contents_url":"https://api.github.com/repos/michael/github/contents/{+path}","compare_url":"https://api.github.com/repos/michael/github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michael/github/merges","archive_url":"https://api.github.com/repos/michael/github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michael/github/downloads","issues_url":"https://api.github.com/repos/michael/github/issues{/number}","pulls_url":"https://api.github.com/repos/michael/github/pulls{/number}","milestones_url":"https://api.github.com/repos/michael/github/milestones{/number}","notifications_url":"https://api.github.com/repos/michael/github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michael/github/labels{/name}","releases_url":"https://api.github.com/repos/michael/github/releases{/id}","deployments_url":"https://api.github.com/repos/michael/github/deployments","created_at":"2012-03-06T18:08:53Z","updated_at":"2016-02-19T21:41:51Z","pushed_at":"2016-02-21T05:25:01Z","git_url":"git://github.com/michael/github.git","ssh_url":"git@github.com:michael/github.git","clone_url":"https://github.com/michael/github.git","svn_url":"https://github.com/michael/github","homepage":"","size":1378,"stargazers_count":1660,"watchers_count":1660,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":389,"mirror_url":null,"open_issues_count":30,"forks":389,"open_issues":30,"watchers":1660,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/michael/github/pulls/281"},"html":{"href":"https://github.com/michael/github/pull/281"},"issue":{"href":"https://api.github.com/repos/michael/github/issues/281"},"comments":{"href":"https://api.github.com/repos/michael/github/issues/281/comments"},"review_comments":{"href":"https://api.github.com/repos/michael/github/pulls/281/comments"},"review_comment":{"href":"https://api.github.com/repos/michael/github/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/michael/github/pulls/281/commits"},"statuses":{"href":"https://api.github.com/repos/michael/github/statuses/8e1cb4b86a5f8544f3a198a9ed03aea2ff652eb5"}}}}