mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* 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 d31f579697
.
This commit is contained in:
parent
8f97127c85
commit
fef3897622
1 changed files with 2 additions and 2 deletions
|
@ -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 =~ /<!--PIPELINE/ }
|
||||
.find { (it.user.login == 'elasticmachine' || it.user.login == 'kibanamachine') && it.body =~ /<!--PIPELINE/ }
|
||||
}
|
||||
|
||||
def getBuildInfoFromComment(commentText) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue