Skip to content

Commit 7cf3e94

Browse files
authored
[7.5] Add kibanamachine support to Github PR comments (#53852) (#53872)
* 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 d31f579.
1 parent 2db95dd commit 7cf3e94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vars/githubPr.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def withDefaultPrComments(closure) {
3535
def message = getNextCommentMessage(info)
3636
postComment(message)
3737

38-
if (lastComment) {
38+
if (lastComment && lastComment.user.login == 'kibanamachine') {
3939
deleteComment(lastComment.id)
4040
}
4141
}
@@ -49,7 +49,7 @@ def isPr() {
4949
def getLatestBuildComment() {
5050
return getComments()
5151
.reverse()
52-
.find { it.user.login == 'elasticmachine' && it.body =~ /<!--PIPELINE/ }
52+
.find { (it.user.login == 'elasticmachine' || it.user.login == 'kibanamachine') && it.body =~ /<!--PIPELINE/ }
5353
}
5454

5555
def getBuildInfoFromComment(commentText) {

0 commit comments

Comments
 (0)