Skip to content

Commit

Permalink
Better item title
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetiot committed Mar 14, 2024
1 parent 66de6df commit fc2d530
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/contributions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ let id url =
let pp_title f t =
match t.kind with
| `Issue -> Fmt.pf f "%s [#%s](%s)" t.title (id t.url) t.url
| `Issue_comment -> Fmt.pf f "Commented %S [#%s](%s)" t.title (id t.url) t.url
| `Issue_comment ->
Fmt.pf f "Commented on %S [#%s](%s)" t.title (id t.url) t.url
| `PR -> Fmt.pf f "%s [#%s](%s)" t.title (id t.url) t.url
| `Review s -> Fmt.pf f "%s %s [#%s](%s)" s t.title (id t.url) t.url
| `New_repo -> Fmt.pf f "Created repository [%s](%s)" t.repo t.url
Expand Down Expand Up @@ -331,5 +332,5 @@ let%expect_test "Contributions.pp" =
Title5 [#165](https://github.com/tarides/okra/issues/165).
xxx

Commented "Title6" [#114](https://github.com/tarides/okra/issues/114#issuecomment-1994130584).
Commented on "Title6" [#114](https://github.com/tarides/okra/issues/114#issuecomment-1994130584).
xxx |}]

0 comments on commit fc2d530

Please sign in to comment.