We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60bc1d0 commit 6820edfCopy full SHA for 6820edf
1 file changed
sanity-report.mjs
@@ -44,8 +44,16 @@ console.log(`Failed Tests: ${failedTests}`);
44
console.log(`Skipped Tests: ${skippedTests}`);
45
console.log(`Total Duration: ${totalDurationMinutes}m ${totalDurationSeconds.toFixed(0)}s`);
46
47
+const host = process.env.HOST || ''
48
+let region = 'UNKNOWN REGION'
49
+
50
+const match = host.match(/^([^-]+(?:-[^-]+)*)-api/)
51
+if (match && match[1]) {
52
+ region = match[1].toUpperCase()
53
+}
54
55
const slackMessage = `
-*Typescript CDA Report*
56
+*Typescript CDA Report - ${region}*
57
• Total Suites: *${totalSuites}*
58
• Total Tests: *${totalTests}*
59
• Passed Tests: *${passedTests}*
0 commit comments