mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
This commit is contained in:
parent
758bc96d0d
commit
d830de06a0
1 changed files with 23 additions and 0 deletions
|
@ -235,6 +235,13 @@ def getNextCommentMessage(previousCommentInfo = [:], isFinal = false) {
|
|||
|
||||
messages << "To update your PR or re-run it, just comment with:\n`@elasticmachine merge upstream`"
|
||||
|
||||
catchErrors {
|
||||
def assignees = getAssignees()
|
||||
if (assignees) {
|
||||
messages << "cc " + assignees.collect { "@${it}"}.join(" ")
|
||||
}
|
||||
}
|
||||
|
||||
info.builds << [
|
||||
status: status,
|
||||
url: env.BUILD_URL,
|
||||
|
@ -329,3 +336,19 @@ def shouldCheckCiMetricSuccess() {
|
|||
|
||||
return true
|
||||
}
|
||||
|
||||
def getPR() {
|
||||
withGithubCredentials {
|
||||
def path = "repos/elastic/kibana/pulls/${env.ghprbPullId}"
|
||||
return githubApi.get(path)
|
||||
}
|
||||
}
|
||||
|
||||
def getAssignees() {
|
||||
def pr = getPR()
|
||||
if (!pr) {
|
||||
return []
|
||||
}
|
||||
|
||||
return pr.assignees.collect { it.login }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue