{"action":"created","issue":{"url":"https://api.github.com/repos/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/65","labels_url":"https://api.github.com/repos/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/65/comments","events_url":"https://api.github.com/repos/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/65/events","html_url":"https://github.com/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/65","id":117628784,"number":65,"title":"Support for Bitbucket's new build status API","user":{"login":"tnguyen14","id":1652595,"avatar_url":"https://avatars.githubusercontent.com/u/1652595?v=3","gravatar_id":"","url":"https://api.github.com/users/tnguyen14","html_url":"https://github.com/tnguyen14","followers_url":"https://api.github.com/users/tnguyen14/followers","following_url":"https://api.github.com/users/tnguyen14/following{/other_user}","gists_url":"https://api.github.com/users/tnguyen14/gists{/gist_id}","starred_url":"https://api.github.com/users/tnguyen14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnguyen14/subscriptions","organizations_url":"https://api.github.com/users/tnguyen14/orgs","repos_url":"https://api.github.com/users/tnguyen14/repos","events_url":"https://api.github.com/users/tnguyen14/events{/privacy}","received_events_url":"https://api.github.com/users/tnguyen14/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":37,"created_at":"2015-11-18T16:47:32Z","updated_at":"2015-12-17T10:58:58Z","closed_at":"2015-12-12T07:00:30Z","body":"Bitbucket recently added the build status API for pull requests and branches http://blog.bitbucket.org/2015/11/18/introducing-the-build-status-api-for-bitbucket-cloud/\r\n\r\nCould we update this plugin to updating the PR build status instead of leaving comments? The API doc is here https://confluence.atlassian.com/bitbucket/buildstatus-resource-779295267.html"},"comment":{"url":"https://api.github.com/repos/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/comments/165422098","html_url":"https://github.com/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/65#issuecomment-165422098","issue_url":"https://api.github.com/repos/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/65","id":165422098,"user":{"login":"pdjtrifork","id":5831057,"avatar_url":"https://avatars.githubusercontent.com/u/5831057?v=3","gravatar_id":"","url":"https://api.github.com/users/pdjtrifork","html_url":"https://github.com/pdjtrifork","followers_url":"https://api.github.com/users/pdjtrifork/followers","following_url":"https://api.github.com/users/pdjtrifork/following{/other_user}","gists_url":"https://api.github.com/users/pdjtrifork/gists{/gist_id}","starred_url":"https://api.github.com/users/pdjtrifork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdjtrifork/subscriptions","organizations_url":"https://api.github.com/users/pdjtrifork/orgs","repos_url":"https://api.github.com/users/pdjtrifork/repos","events_url":"https://api.github.com/users/pdjtrifork/events{/privacy}","received_events_url":"https://api.github.com/users/pdjtrifork/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T10:58:58Z","updated_at":"2015-12-17T10:58:58Z","body":"@Dahlgren - Not quite, if so we could just tell users to refrain from using that feature. Was considering this solution myself:\r\nHave the plugin add a comment to the PR, saying that the 'adhoc build request' command has been completed (or some other hard coded comment that can be easily matched by the plugin). Though this comment in the PR add no value, this seems to be the only way to maintain state. If possible the plugin should just add a comment the first time around and then update this on subsequent build requests thus moving it to the top of the comment pile chronologically.\r\nThis way the 'test this please' feature would still work but unless used explicitely no comments were added to the PR by the plugin...win-win "}}