File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ let notify ?channel ~web_ui ~service ~commit ~repo x =
3131 | None -> x
3232 | Some { Slack_channel. uri; mode; repositories = _ } ->
3333 let s =
34- let + state = Current. state x
34+ let + state = Current. state ~hidden: true x
3535 and + commit in
3636 match state, mode with
3737 | Error (`Msg _), Slack_channel. Failure
Original file line number Diff line number Diff line change @@ -40,5 +40,7 @@ let parse_json s =
4040 in
4141 try
4242 from_string s |> Util. to_list |> List. map read_channel
43- with ex ->
44- Fmt. failwith " Failed to parse slack URIs '%S': %a" s Fmt. exn ex
43+ with _ ->
44+ let uri = Current_slack. channel @@ Uri. of_string @@ String. trim s in
45+ [ { uri; mode = All ; repositories = All_repos } ]
46+ (* Fmt.failwith "Failed to parse slack URIs '%S': %a" s Fmt.exn e *)
You can’t perform that action at this time.
0 commit comments