{"action":"opened","number":157,"pull_request":{"url":"https://api.github.com/repos/xanzy/go-gitlab/pulls/157","id":112469619,"html_url":"https://github.com/xanzy/go-gitlab/pull/157","diff_url":"https://github.com/xanzy/go-gitlab/pull/157.diff","patch_url":"https://github.com/xanzy/go-gitlab/pull/157.patch","issue_url":"https://api.github.com/repos/xanzy/go-gitlab/issues/157","number":157,"state":"open","locked":false,"title":"Update BranchesService Methods to Conform to v4 API","user":{"login":"johanbrandhorst","id":6604151,"avatar_url":"https://avatars1.githubusercontent.com/u/6604151?v=3","gravatar_id":"","url":"https://api.github.com/users/johanbrandhorst","html_url":"https://github.com/johanbrandhorst","followers_url":"https://api.github.com/users/johanbrandhorst/followers","following_url":"https://api.github.com/users/johanbrandhorst/following{/other_user}","gists_url":"https://api.github.com/users/johanbrandhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/johanbrandhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanbrandhorst/subscriptions","organizations_url":"https://api.github.com/users/johanbrandhorst/orgs","repos_url":"https://api.github.com/users/johanbrandhorst/repos","events_url":"https://api.github.com/users/johanbrandhorst/events{/privacy}","received_events_url":"https://api.github.com/users/johanbrandhorst/received_events","type":"User","site_admin":false},"body":"Also merge v4 with recent master changes.\r\n\r\nThe `BranchesService` methods were almost all inconsistent with other Services and not supplying all available options.\r\n\r\nThe Branch struct now includes all properties exported by the v4 API.\r\n`ListBranches` takes a new `ListBranchesOptions` struct for pagination.\r\nAdded the ability to configure the branch protection in line with API documentation.\r\nAdded a new `DeleteMergedBranches` which is part of the branches page.","created_at":"2017-03-24T14:37:04Z","updated_at":"2017-03-24T14:37:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/xanzy/go-gitlab/pulls/157/commits","review_comments_url":"https://api.github.com/repos/xanzy/go-gitlab/pulls/157/comments","review_comment_url":"https://api.github.com/repos/xanzy/go-gitlab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xanzy/go-gitlab/issues/157/comments","statuses_url":"https://api.github.com/repos/xanzy/go-gitlab/statuses/a52af6da7652218296a3a403f9bf7c172700a11a","head":{"label":"johanbrandhorst:update-branches-endpoints-v4","ref":"update-branches-endpoints-v4","sha":"a52af6da7652218296a3a403f9bf7c172700a11a","user":{"login":"johanbrandhorst","id":6604151,"avatar_url":"https://avatars1.githubusercontent.com/u/6604151?v=3","gravatar_id":"","url":"https://api.github.com/users/johanbrandhorst","html_url":"https://github.com/johanbrandhorst","followers_url":"https://api.github.com/users/johanbrandhorst/followers","following_url":"https://api.github.com/users/johanbrandhorst/following{/other_user}","gists_url":"https://api.github.com/users/johanbrandhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/johanbrandhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanbrandhorst/subscriptions","organizations_url":"https://api.github.com/users/johanbrandhorst/orgs","repos_url":"https://api.github.com/users/johanbrandhorst/repos","events_url":"https://api.github.com/users/johanbrandhorst/events{/privacy}","received_events_url":"https://api.github.com/users/johanbrandhorst/received_events","type":"User","site_admin":false},"repo":{"id":85811299,"name":"go-gitlab","full_name":"johanbrandhorst/go-gitlab","owner":{"login":"johanbrandhorst","id":6604151,"avatar_url":"https://avatars1.githubusercontent.com/u/6604151?v=3","gravatar_id":"","url":"https://api.github.com/users/johanbrandhorst","html_url":"https://github.com/johanbrandhorst","followers_url":"https://api.github.com/users/johanbrandhorst/followers","following_url":"https://api.github.com/users/johanbrandhorst/following{/other_user}","gists_url":"https://api.github.com/users/johanbrandhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/johanbrandhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanbrandhorst/subscriptions","organizations_url":"https://api.github.com/users/johanbrandhorst/orgs","repos_url":"https://api.github.com/users/johanbrandhorst/repos","events_url":"https://api.github.com/users/johanbrandhorst/events{/privacy}","received_events_url":"https://api.github.com/users/johanbrandhorst/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johanbrandhorst/go-gitlab","description":"A GitLab API client enabling Go programs to interact with GitLab in a simple and uniform way","fork":true,"url":"https://api.github.com/repos/johanbrandhorst/go-gitlab","forks_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/forks","keys_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/teams","hooks_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/hooks","issue_events_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/issues/events{/number}","events_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/events","assignees_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/assignees{/user}","branches_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/branches{/branch}","tags_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/tags","blobs_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/statuses/{sha}","languages_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/languages","stargazers_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/stargazers","contributors_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/contributors","subscribers_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/subscribers","subscription_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/subscription","commits_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/contents/{+path}","compare_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/merges","archive_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/downloads","issues_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/issues{/number}","pulls_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/pulls{/number}","milestones_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/milestones{/number}","notifications_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/labels{/name}","releases_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/releases{/id}","deployments_url":"https://api.github.com/repos/johanbrandhorst/go-gitlab/deployments","created_at":"2017-03-22T09:50:41Z","updated_at":"2017-03-22T09:50:43Z","pushed_at":"2017-03-24T14:34:51Z","git_url":"git://github.com/johanbrandhorst/go-gitlab.git","ssh_url":"git@github.com:johanbrandhorst/go-gitlab.git","clone_url":"https://github.com/johanbrandhorst/go-gitlab.git","svn_url":"https://github.com/johanbrandhorst/go-gitlab","homepage":null,"size":259,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"xanzy:f-api-v4","ref":"f-api-v4","sha":"1e61c56d18afbd75d93e6a252cde757b375691e1","user":{"login":"xanzy","id":8135796,"avatar_url":"https://avatars0.githubusercontent.com/u/8135796?v=3","gravatar_id":"","url":"https://api.github.com/users/xanzy","html_url":"https://github.com/xanzy","followers_url":"https://api.github.com/users/xanzy/followers","following_url":"https://api.github.com/users/xanzy/following{/other_user}","gists_url":"https://api.github.com/users/xanzy/gists{/gist_id}","starred_url":"https://api.github.com/users/xanzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xanzy/subscriptions","organizations_url":"https://api.github.com/users/xanzy/orgs","repos_url":"https://api.github.com/users/xanzy/repos","events_url":"https://api.github.com/users/xanzy/events{/privacy}","received_events_url":"https://api.github.com/users/xanzy/received_events","type":"Organization","site_admin":false},"repo":{"id":33072974,"name":"go-gitlab","full_name":"xanzy/go-gitlab","owner":{"login":"xanzy","id":8135796,"avatar_url":"https://avatars0.githubusercontent.com/u/8135796?v=3","gravatar_id":"","url":"https://api.github.com/users/xanzy","html_url":"https://github.com/xanzy","followers_url":"https://api.github.com/users/xanzy/followers","following_url":"https://api.github.com/users/xanzy/following{/other_user}","gists_url":"https://api.github.com/users/xanzy/gists{/gist_id}","starred_url":"https://api.github.com/users/xanzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xanzy/subscriptions","organizations_url":"https://api.github.com/users/xanzy/orgs","repos_url":"https://api.github.com/users/xanzy/repos","events_url":"https://api.github.com/users/xanzy/events{/privacy}","received_events_url":"https://api.github.com/users/xanzy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xanzy/go-gitlab","description":"A GitLab API client enabling Go programs to interact with GitLab in a simple and uniform way","fork":false,"url":"https://api.github.com/repos/xanzy/go-gitlab","forks_url":"https://api.github.com/repos/xanzy/go-gitlab/forks","keys_url":"https://api.github.com/repos/xanzy/go-gitlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xanzy/go-gitlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xanzy/go-gitlab/teams","hooks_url":"https://api.github.com/repos/xanzy/go-gitlab/hooks","issue_events_url":"https://api.github.com/repos/xanzy/go-gitlab/issues/events{/number}","events_url":"https://api.github.com/repos/xanzy/go-gitlab/events","assignees_url":"https://api.github.com/repos/xanzy/go-gitlab/assignees{/user}","branches_url":"https://api.github.com/repos/xanzy/go-gitlab/branches{/branch}","tags_url":"https://api.github.com/repos/xanzy/go-gitlab/tags","blobs_url":"https://api.github.com/repos/xanzy/go-gitlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xanzy/go-gitlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xanzy/go-gitlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/xanzy/go-gitlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xanzy/go-gitlab/statuses/{sha}","languages_url":"https://api.github.com/repos/xanzy/go-gitlab/languages","stargazers_url":"https://api.github.com/repos/xanzy/go-gitlab/stargazers","contributors_url":"https://api.github.com/repos/xanzy/go-gitlab/contributors","subscribers_url":"https://api.github.com/repos/xanzy/go-gitlab/subscribers","subscription_url":"https://api.github.com/repos/xanzy/go-gitlab/subscription","commits_url":"https://api.github.com/repos/xanzy/go-gitlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/xanzy/go-gitlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/xanzy/go-gitlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/xanzy/go-gitlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/xanzy/go-gitlab/contents/{+path}","compare_url":"https://api.github.com/repos/xanzy/go-gitlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xanzy/go-gitlab/merges","archive_url":"https://api.github.com/repos/xanzy/go-gitlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xanzy/go-gitlab/downloads","issues_url":"https://api.github.com/repos/xanzy/go-gitlab/issues{/number}","pulls_url":"https://api.github.com/repos/xanzy/go-gitlab/pulls{/number}","milestones_url":"https://api.github.com/repos/xanzy/go-gitlab/milestones{/number}","notifications_url":"https://api.github.com/repos/xanzy/go-gitlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xanzy/go-gitlab/labels{/name}","releases_url":"https://api.github.com/repos/xanzy/go-gitlab/releases{/id}","deployments_url":"https://api.github.com/repos/xanzy/go-gitlab/deployments","created_at":"2015-03-29T13:01:43Z","updated_at":"2017-03-24T10:11:58Z","pushed_at":"2017-03-24T14:31:08Z","git_url":"git://github.com/xanzy/go-gitlab.git","ssh_url":"git@github.com:xanzy/go-gitlab.git","clone_url":"https://github.com/xanzy/go-gitlab.git","svn_url":"https://github.com/xanzy/go-gitlab","homepage":null,"size":286,"stargazers_count":118,"watchers_count":118,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":7,"forks":63,"open_issues":7,"watchers":118,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xanzy/go-gitlab/pulls/157"},"html":{"href":"https://github.com/xanzy/go-gitlab/pull/157"},"issue":{"href":"https://api.github.com/repos/xanzy/go-gitlab/issues/157"},"comments":{"href":"https://api.github.com/repos/xanzy/go-gitlab/issues/157/comments"},"review_comments":{"href":"https://api.github.com/repos/xanzy/go-gitlab/pulls/157/comments"},"review_comment":{"href":"https://api.github.com/repos/xanzy/go-gitlab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xanzy/go-gitlab/pulls/157/commits"},"statuses":{"href":"https://api.github.com/repos/xanzy/go-gitlab/statuses/a52af6da7652218296a3a403f9bf7c172700a11a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":5,"additions":51,"deletions":12,"changed_files":4}}
{"actor":{"display_login":"johanbrandhorst"}}