diff --git a/app/http-gateway.js b/app/http-gateway.js index 8e70eddc..6209d632 100644 --- a/app/http-gateway.js +++ b/app/http-gateway.js @@ -103,7 +103,7 @@ class ApiGateway { } else if (userAction === 'deploy_now') { return true } else if (this.isRobokitTrigger(checkRunName, status, conclusion)) { - return deploy.release || deploy.prerelease || this.isKnownBranch(deploy) || this.isFeatureBranch(deploy) + return deploy.release || this.isKnownBranch(deploy) || this.isFeatureBranch(deploy) } else if (this.isRobokitRelease(checkRunName, status, conclusion)) { return true } else { diff --git a/app/utils.js b/app/utils.js index fe251aa1..3c81af59 100644 --- a/app/utils.js +++ b/app/utils.js @@ -166,9 +166,11 @@ class Utils { if (i < logs.length - 1) { status = 'SUCCESS' } - for (const line of message.split(/\r?\n/)) { - const str = line.replace(/(\r\n|\r|\n)/g, ' ') - details += `${Utils.getMarker(status)} ${str} \n` + if (message !== undefined) { + for (const line of message.split(/\r?\n/)) { + const str = line.replace(/(\r\n|\r|\n)/g, ' ') + details += `${Utils.getMarker(status)} ${str} \n` + } } } return details