From 66b60f8c6a695437fa086d4ebfb4168828d472f9 Mon Sep 17 00:00:00 2001 From: Brian Seeders Date: Tue, 31 Dec 2019 15:14:55 -0500 Subject: [PATCH] Add kibanamachine support to Github PR comments (#53852) * Add kibanamachine support to Github PR comments * Temporary commit for quick successful pipeline * Only delete the last comment if it was made by kibanamachine * Revert "Temporary commit for quick successful pipeline" This reverts commit d31f579697682b93dfc1381070c98fa45491560c. --- vars/githubPr.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/githubPr.groovy b/vars/githubPr.groovy index 09a166192bf7ad..ce164ab98ab1ef 100644 --- a/vars/githubPr.groovy +++ b/vars/githubPr.groovy @@ -35,7 +35,7 @@ def withDefaultPrComments(closure) { def message = getNextCommentMessage(info) postComment(message) - if (lastComment) { + if (lastComment && lastComment.user.login == 'kibanamachine') { deleteComment(lastComment.id) } } @@ -49,7 +49,7 @@ def isPr() { def getLatestBuildComment() { return getComments() .reverse() - .find { it.user.login == 'elasticmachine' && it.body =~ /