{"action":"created","issue":{"url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/issues/62","labels_url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/issues/62/comments","events_url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/issues/62/events","html_url":"https://github.com/nemccarthy/stash-pullrequest-builder-plugin/pull/62","id":118456620,"number":62,"title":"Allow deleting old build finish comments","user":{"login":"nickbroon","id":1462531,"avatar_url":"https://avatars.githubusercontent.com/u/1462531?v=3","gravatar_id":"","url":"https://api.github.com/users/nickbroon","html_url":"https://github.com/nickbroon","followers_url":"https://api.github.com/users/nickbroon/followers","following_url":"https://api.github.com/users/nickbroon/following{/other_user}","gists_url":"https://api.github.com/users/nickbroon/gists{/gist_id}","starred_url":"https://api.github.com/users/nickbroon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickbroon/subscriptions","organizations_url":"https://api.github.com/users/nickbroon/orgs","repos_url":"https://api.github.com/users/nickbroon/repos","events_url":"https://api.github.com/users/nickbroon/events{/privacy}","received_events_url":"https://api.github.com/users/nickbroon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-23T19:41:36Z","updated_at":"2015-11-28T12:01:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/pulls/62","html_url":"https://github.com/nemccarthy/stash-pullrequest-builder-plugin/pull/62","diff_url":"https://github.com/nemccarthy/stash-pullrequest-builder-plugin/pull/62.diff","patch_url":"https://github.com/nemccarthy/stash-pullrequest-builder-plugin/pull/62.patch"},"body":"When Pull Request branches, or their target branches, are regularly\r\nupdated, it can result in a lot of old Build Finish Comments on the PR,\r\nbe they success/failure.\r\nAs the only action on PR is to merge it, and this only applies to the most\r\nrecent HEAD of the PR and the target branch, users/maintainers are generally\r\nonly interested in the Build state of this, and not all the previous\r\nones. So deleting the old ones, and thus only having the state of the\r\nmost recent build cuts down on the noise in the PR comments. It make the PR Builder comment\r\nbehave almost like a Build Status as found on Stash Commits.\r\n(aside: it would great if Stash supported Build Status for PR, not just\r\ncommits. See https://jira.atlassian.com/browse/BSERV-8165).\r\nControlled by a config option, that defaults to the existing behaviour.\r\nTested, and works in my setup. Only the most recent Build Finish message is kept."},"comment":{"url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/issues/comments/160287682","html_url":"https://github.com/nemccarthy/stash-pullrequest-builder-plugin/pull/62#issuecomment-160287682","issue_url":"https://api.github.com/repos/nemccarthy/stash-pullrequest-builder-plugin/issues/62","id":160287682,"user":{"login":"nickbroon","id":1462531,"avatar_url":"https://avatars.githubusercontent.com/u/1462531?v=3","gravatar_id":"","url":"https://api.github.com/users/nickbroon","html_url":"https://github.com/nickbroon","followers_url":"https://api.github.com/users/nickbroon/followers","following_url":"https://api.github.com/users/nickbroon/following{/other_user}","gists_url":"https://api.github.com/users/nickbroon/gists{/gist_id}","starred_url":"https://api.github.com/users/nickbroon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickbroon/subscriptions","organizations_url":"https://api.github.com/users/nickbroon/orgs","repos_url":"https://api.github.com/users/nickbroon/repos","events_url":"https://api.github.com/users/nickbroon/events{/privacy}","received_events_url":"https://api.github.com/users/nickbroon/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T12:01:05Z","updated_at":"2015-11-28T12:01:05Z","body":"@nemccarthy should I submit this PR against https://github.com/jenkinsci/stash-pullrequest-builder-plugin?"}}