-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathModels.cs
More file actions
26 lines (22 loc) · 811 Bytes
/
Models.cs
File metadata and controls
26 lines (22 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
namespace NuGetDashboard;
public record RawPR(int Number, string Title, string Url, string Author, DateTime CreatedAt, DateTime MergedAt);
public record PRRecord(
int Number, string Title, string Url, string Author,
DateTime CreatedAt,
DateTime EffectiveStart, // ready_for_review → review_requested → created_at
DateTime MergedAt,
double HoursToMerge, // EffectiveStart → MergedAt
double? FirstApprovalHours,
DateTime? FirstApprovedAt);
public record DashboardMetrics(
int TotalPRs,
double MedianHoursToComplete,
double PercentApprovedUnder24h,
double PercentMergedUnder24h);
public record DashboardData(
string DateRange,
string AsOf,
int WindowDays,
DashboardMetrics Metrics,
List<PRRecord> SlowPRs,
List<PRRecord> AllPRs);