Skip to content

Commit d4a51ef

Browse files
committed
Make the Zulip stream name/number configurable
1 parent e6dea03 commit d4a51ef

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
custom-uri
33
discord-webhook
44
zulip-apikey
5+
zulip-stream
56
poll
67
api
78
worker

serverLib.sml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,14 +669,15 @@ end
669669

670670
structure Zulip = struct
671671
val zulip_apikey = until_space (file_to_string "zulip-apikey")
672+
val zulip_stream = until_space (file_to_string "zulip-stream")
672673
val postMessage_endpoint = "https://hol.zulipchat.com/api/v1/messages"
673674
fun postMessage_curl_cmd text = (curl_path,["--silent","--show-error",
674675
"--request","POST",
675676
"--user",String.concat["[email protected]:",zulip_apikey],
676677
"--user-agent","CakeML-Regression-Server",
677678
"--write-out","%{http_code}",
678679
"--data-urlencode","type=stream",
679-
"--data-urlencode","to=Notifications",
680+
"--data-urlencode",String.concat["to=",zulip_stream],
680681
"--data-urlencode","topic=Regression",
681682
"--data-urlencode",String.concat["content=",text],
682683
postMessage_endpoint])

0 commit comments

Comments
 (0)