{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/bitbucket-pullrequest-builder-plugin/issues/7","repository_url":"https://api.github.com/repos/jenkinsci/bitbucket-pullrequest-builder-plugin","labels_url":"https://api.github.com/repos/jenkinsci/bitbucket-pullrequest-builder-plugin/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/bitbucket-pullrequest-builder-plugin/issues/7/comments","events_url":"https://api.github.com/repos/jenkinsci/bitbucket-pullrequest-builder-plugin/issues/7/events","html_url":"https://github.com/jenkinsci/bitbucket-pullrequest-builder-plugin/pull/7","id":173277836,"number":7,"title":"Use the 2.0 Bitbucket pull request comment API. ","user":{"login":"csomme","id":666623,"avatar_url":"https://avatars.githubusercontent.com/u/666623?v=3","gravatar_id":"","url":"https://api.github.com/users/csomme","html_url":"https://github.com/csomme","followers_url":"https://api.github.com/users/csomme/followers","following_url":"https://api.github.com/users/csomme/following{/other_user}","gists_url":"https://api.github.com/users/csomme/gists{/gist_id}","starred_url":"https://api.github.com/users/csomme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csomme/subscriptions","organizations_url":"https://api.github.com/users/csomme/orgs","repos_url":"https://api.github.com/users/csomme/repos","events_url":"https://api.github.com/users/csomme/events{/privacy}","received_events_url":"https://api.github.com/users/csomme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nishio-dens","id":818452,"avatar_url":"https://avatars.githubusercontent.com/u/818452?v=3","gravatar_id":"","url":"https://api.github.com/users/nishio-dens","html_url":"https://github.com/nishio-dens","followers_url":"https://api.github.com/users/nishio-dens/followers","following_url":"https://api.github.com/users/nishio-dens/following{/other_user}","gists_url":"https://api.github.com/users/nishio-dens/gists{/gist_id}","starred_url":"https://api.github.com/users/nishio-dens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishio-dens/subscriptions","organizations_url":"https://api.github.com/users/nishio-dens/orgs","repos_url":"https://api.github.com/users/nishio-dens/repos","events_url":"https://api.github.com/users/nishio-dens/events{/privacy}","received_events_url":"https://api.github.com/users/nishio-dens/received_events","type":"User","site_admin":false},"assignees":[{"login":"nishio-dens","id":818452,"avatar_url":"https://avatars.githubusercontent.com/u/818452?v=3","gravatar_id":"","url":"https://api.github.com/users/nishio-dens","html_url":"https://github.com/nishio-dens","followers_url":"https://api.github.com/users/nishio-dens/followers","following_url":"https://api.github.com/users/nishio-dens/following{/other_user}","gists_url":"https://api.github.com/users/nishio-dens/gists{/gist_id}","starred_url":"https://api.github.com/users/nishio-dens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishio-dens/subscriptions","organizations_url":"https://api.github.com/users/nishio-dens/orgs","repos_url":"https://api.github.com/users/nishio-dens/repos","events_url":"https://api.github.com/users/nishio-dens/events{/privacy}","received_events_url":"https://api.github.com/users/nishio-dens/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-08-25T18:35:27Z","updated_at":"2016-12-19T23:37:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/bitbucket-pullrequest-builder-plugin/pulls/7","html_url":"https://github.com/jenkinsci/bitbucket-pullrequest-builder-plugin/pull/7","diff_url":"https://github.com/jenkinsci/bitbucket-pullrequest-builder-plugin/pull/7.diff","patch_url":"https://github.com/jenkinsci/bitbucket-pullrequest-builder-plugin/pull/7.patch"},"body":"I'm a developer on the Bitbucket team. The 1.0 pull request comment API is deprecated, and for historical reasons is a fairly expensive API call for us. This PR replaces the call with a call to the 2.0 API pull request comment API. We don't currently have all pull request comment functionality available in the 2.0 API, so the posting and editing of comments should continue to be done using the 1.0 API.\n\nAll Bitbucket 2.0 APIs are paginated. While converting the comments API I noticed that while the plugin is using the 2.0 pull requests API, it's only grabbing the first page of results, so I fixed that as well.\n\nSince in both cases the plugin wants all available values, I added the maximum allowed pagelen header for each API which should reduce the number of calls that should need to be made to get a complete list.\n"},"comment":{"url":"https://api.github.com/repos/jenkinsci/bitbucket-pullrequest-builder-plugin/issues/comments/268110659","html_url":"https://github.com/jenkinsci/bitbucket-pullrequest-builder-plugin/pull/7#issuecomment-268110659","issue_url":"https://api.github.com/repos/jenkinsci/bitbucket-pullrequest-builder-plugin/issues/7","id":268110659,"user":{"login":"erikvanzijst","id":63338,"avatar_url":"https://avatars.githubusercontent.com/u/63338?v=3","gravatar_id":"","url":"https://api.github.com/users/erikvanzijst","html_url":"https://github.com/erikvanzijst","followers_url":"https://api.github.com/users/erikvanzijst/followers","following_url":"https://api.github.com/users/erikvanzijst/following{/other_user}","gists_url":"https://api.github.com/users/erikvanzijst/gists{/gist_id}","starred_url":"https://api.github.com/users/erikvanzijst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikvanzijst/subscriptions","organizations_url":"https://api.github.com/users/erikvanzijst/orgs","repos_url":"https://api.github.com/users/erikvanzijst/repos","events_url":"https://api.github.com/users/erikvanzijst/events{/privacy}","received_events_url":"https://api.github.com/users/erikvanzijst/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T23:37:06Z","updated_at":"2016-12-19T23:37:06Z","body":"> Sorry for my late response.\r\n> I'll try to build this pr on my local machine. If there is no problem, i'll merge it.\r\n\r\nNo worries. Did you have chance to look at this yet?\r\n"}}
{"actor":{"display_login":"erikvanzijst"}}