File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,10 @@ let filter_t =
63
63
will show failures for just the flambda, release-candidate or \
64
64
safe-string tests respectively. $(i,lagging) will show the packages \
65
65
whose latest release is uninstallable against the latest version of \
66
- the compiler. $(i,all) will show all known results for all versions \
67
- including successes."
66
+ the compiler. $(i,orphaned) will list all the packages that do not \
67
+ have an active maintainer, and so are looking for community help to \
68
+ take care of them. $(i,all) will show all known results for all \
69
+ versions including successes."
68
70
in
69
71
let open Arg in
70
72
let term =
@@ -73,6 +75,7 @@ let filter_t =
73
75
; (" failures" , `Failures )
74
76
; (" recent" , `Recent )
75
77
; (" lagging" , `Lagging )
78
+ ; (" orphaned" , `Orphaned )
76
79
; (" variants:ss" , `Variants `SS )
77
80
; (" variants:fl" , `Variants `Flambda )
78
81
; (" variants:rc" , `Variants `RC ) ]
Original file line number Diff line number Diff line change @@ -151,6 +151,12 @@ module A = struct
151
151
match (ss, uss) with
152
152
| (`Ok | `Unknown | `Uninstallable ), `Uninstallable -> true
153
153
| _ -> false
154
+
155
+ let is_unmaintained pkg =
156
+ pkg.maintainers = []
157
+ || List. mem " https://github.com/ocaml/opam-repository/issues"
158
+ pkg.maintainers
159
+ || List. mem
" [email protected] " pkg.maintainers
154
160
end
155
161
156
162
module S = struct
@@ -233,6 +239,7 @@ type filters =
233
239
| `Failures
234
240
| `Recent
235
241
| `Lagging
242
+ | `Orphaned
236
243
| `Variants of [`Flambda | `RC | `SS ] ] }
237
244
238
245
type params = {distro : D .t option ; ov : OV .t option ; arch : OV .arch option }
@@ -302,6 +309,9 @@ let render_package ppf ~filters pkg =
302
309
| `Lagging ->
303
310
if A. is_lagging pkg.versions then
304
311
render_packages ppf pkg.name [A. latest_version pkg.versions]
312
+ | `Orphaned ->
313
+ if A. is_unmaintained pkg then
314
+ render_packages ppf pkg.name [A. latest_version pkg.versions]
305
315
| `Failures ->
306
316
List. filter (fun (_ , m ) -> A. has_fails m) pkg.versions
307
317
|> render_packages ppf pkg.name
You can’t perform that action at this time.
0 commit comments