Skip to content

Commit

Permalink
Don't fail the comment if assignees can't be fetched for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders committed Feb 18, 2021
1 parent 65c2064 commit 6893b86
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vars/githubPr.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,11 @@ def getNextCommentMessage(previousCommentInfo = [:], isFinal = false) {

messages << "To update your PR or re-run it, just comment with:\n`@elasticmachine merge upstream`"

def assignees = getAssignees()
if (assignees) {
messages << "cc " + assignees.collect { "@${it}"}.join(" ")
catchErrors {
def assignees = getAssignees()
if (assignees) {
messages << "cc " + assignees.collect { "@${it}"}.join(" ")
}
}

info.builds << [
Expand Down

0 comments on commit 6893b86

Please sign in to comment.