Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Octokit.Webhooks/Models/WorkflowJobEvent/WorkflowJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public sealed record WorkflowJob
public string? RunnerGroupName { get; init; }

[JsonPropertyName("started_at")]
public string StartedAt { get; init; } = null!;
[JsonConverter(typeof(DateTimeOffsetConverter))]
public DateTimeOffset StartedAt { get; init; }

[JsonPropertyName("completed_at")]
public string? CompletedAt { get; init; }
Expand All @@ -72,5 +73,6 @@ public sealed record WorkflowJob
public string? HeadBranch { get; init; }

[JsonPropertyName("created_at")]
public string CreatedAt { get; init; } = null!;
[JsonConverter(typeof(DateTimeOffsetConverter))]
public DateTimeOffset CreatedAt { get; init; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public sealed record WorkflowJobStep
public long Number { get; init; }

[JsonPropertyName("started_at")]
public string StartedAt { get; init; } = null!;
[JsonConverter(typeof(DateTimeOffsetConverter))]
public DateTimeOffset StartedAt { get; init; }

[JsonPropertyName("completed_at")]
[JsonConverter(typeof(NullableDateTimeOffsetConverter))]
Expand Down