File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/Octokit.Webhooks/Models/WorkflowJobEvent Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,8 @@ public sealed record WorkflowJob
60
60
public string ? RunnerGroupName { get ; init ; }
61
61
62
62
[ JsonPropertyName ( "started_at" ) ]
63
- public string StartedAt { get ; init ; } = null ! ;
63
+ [ JsonConverter ( typeof ( DateTimeOffsetConverter ) ) ]
64
+ public DateTimeOffset StartedAt { get ; init ; }
64
65
65
66
[ JsonPropertyName ( "completed_at" ) ]
66
67
public string ? CompletedAt { get ; init ; }
@@ -72,5 +73,6 @@ public sealed record WorkflowJob
72
73
public string ? HeadBranch { get ; init ; }
73
74
74
75
[ JsonPropertyName ( "created_at" ) ]
75
- public string CreatedAt { get ; init ; } = null ! ;
76
+ [ JsonConverter ( typeof ( DateTimeOffsetConverter ) ) ]
77
+ public DateTimeOffset CreatedAt { get ; init ; }
76
78
}
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ public sealed record WorkflowJobStep
18
18
public long Number { get ; init ; }
19
19
20
20
[ JsonPropertyName ( "started_at" ) ]
21
- public string StartedAt { get ; init ; } = null ! ;
21
+ [ JsonConverter ( typeof ( DateTimeOffsetConverter ) ) ]
22
+ public DateTimeOffset StartedAt { get ; init ; }
22
23
23
24
[ JsonPropertyName ( "completed_at" ) ]
24
25
[ JsonConverter ( typeof ( NullableDateTimeOffsetConverter ) ) ]
You can’t perform that action at this time.
0 commit comments