Skip to content

Commit

Permalink
Added Unfurled link to Github for Query Snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
stanbrub committed Oct 17, 2023
1 parent 39800c9 commit ea5c728
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,16 @@ public void publish() {
}

void publishToSlack(Path outDir) {
var message = "Nightly Benchmark Changes Since Last Release\n";
var message = "Nightly Benchmark Changes " +
"<https://github.com/deephaven/benchmark/blob/main/docs/PublishedResults.md| (Dig Deeper)>\n";
// "<https://controller.try-dh.demo.community.deephaven.io/get_ide| (Benchmark Dashboards)>\n";
for (String table : tables) {
message += "```" + Filer.getFileText(outDir.resolve(table + ".csv")) + "```";
}

var payload = """
{"channel": "${channel}", "text": "${msg}"}
{"channel": "${channel}", "icon_emoji": ":horse_racing:", "unfurl_links": "false",
"unfurl_media": "false", "text": "${msg}"}
""";
payload = payload.replace("${channel}", slackChannel);
payload = payload.replace("${msg}", message);
Expand Down

0 comments on commit ea5c728

Please sign in to comment.