Skip to content

Commit

Permalink
Only delete the last comment if it was made by kibanamachine
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders committed Dec 30, 2019
1 parent d31f579 commit 813196f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vars/githubPr.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def withDefaultPrComments(closure) {
def message = getNextCommentMessage(info)
postComment(message)

if (lastComment) {
if (lastComment && lastComment.user.login == 'kibanamachine') {
deleteComment(lastComment.id)
}
}
Expand Down

0 comments on commit 813196f

Please sign in to comment.