Skip to content

Commit

Permalink
fix details output replaceAll not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenhamias committed Dec 10, 2024
1 parent 829abc8 commit 13d81ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/http-gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 5 additions & 3 deletions app/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13d81ed

Please sign in to comment.