Skip to content

Commit 1a70090

Browse files
committed
fix buildkite url parsing
1 parent 7ab7b7a commit 1a70090

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/slack.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ let generate_status_notification (cfg : Config_t.config) (notification : status_
291291
(* Keep only the portion of the url before /builds/... *)
292292
let pipeline_url =
293293
match String.split_on_char '/' target_url with
294-
| "https:" :: "" :: "buildkite.com" :: "org" :: pipeline :: "builds" :: _ ->
295-
Some (Printf.sprintf "https://buildkite.com/org/%s" pipeline)
294+
| "https:" :: "" :: "buildkite.com" :: org :: pipeline :: "builds" :: _ ->
295+
Some (Printf.sprintf "https://buildkite.com/%s/%s" org pipeline)
296296
| _ -> None
297297
in
298298
match pipeline_url with

0 commit comments

Comments
 (0)