burrodiarachidi
This commit is contained in:
parent
e252c9252e
commit
5c3cbbd849
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ let should_alert now alerts =
|
||||||
|
|
||||||
let issue_data_to_json (issue: Datatypes.forgejo_issue_data) =
|
let issue_data_to_json (issue: Datatypes.forgejo_issue_data) =
|
||||||
let open Yojson.Basic in
|
let open Yojson.Basic in
|
||||||
let due_date = Option.value ~default:"" issue.due_date in
|
let due_date = Option.value ~default:"" issue.due_date |> String.split_on_char 'T' |> List.hd in
|
||||||
let room_id = issue.matrix_target in
|
let room_id = issue.matrix_target in
|
||||||
let content = [%string {|[%{issue.title}](%{issue.url}) - %{due_date}
|
let content = [%string {|[%{issue.title}](%{issue.url}) - %{due_date}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue