From d56404aee8b2cc33ec4c289525b291e3ed9f50d3 Mon Sep 17 00:00:00 2001 From: Liam Neville Date: Wed, 28 Jun 2023 13:03:59 -0700 Subject: [PATCH] Make `CreatedAt` nullable (#2734) make createdAt nullable --- Octokit/Models/Response/WorkflowJob.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Octokit/Models/Response/WorkflowJob.cs b/Octokit/Models/Response/WorkflowJob.cs index d326483bba..4c4ce0fd4b 100644 --- a/Octokit/Models/Response/WorkflowJob.cs +++ b/Octokit/Models/Response/WorkflowJob.cs @@ -10,7 +10,7 @@ public class WorkflowJob { public WorkflowJob() { } - public WorkflowJob(long id, long runId, string runUrl, string nodeId, string headSha, string url, string htmlUrl, WorkflowJobStatus status, WorkflowJobConclusion? conclusion, DateTimeOffset createdAt, DateTimeOffset startedAt, DateTimeOffset? completedAt, string name, IReadOnlyList steps, string checkRunUrl, IReadOnlyList labels, long? runnerId = default, string runnerName = default, long? runnerGroupId = default, string runnerGroupName = default) + public WorkflowJob(long id, long runId, string runUrl, string nodeId, string headSha, string url, string htmlUrl, WorkflowJobStatus status, WorkflowJobConclusion? conclusion, DateTimeOffset? createdAt, DateTimeOffset startedAt, DateTimeOffset? completedAt, string name, IReadOnlyList steps, string checkRunUrl, IReadOnlyList labels, long? runnerId = default, string runnerName = default, long? runnerGroupId = default, string runnerGroupName = default) { Id = id; RunId = runId; @@ -82,7 +82,7 @@ public WorkflowJob(long id, long runId, string runUrl, string nodeId, string hea /// /// The time that the job was created. /// - public DateTimeOffset CreatedAt { get; private set; } + public DateTimeOffset? CreatedAt { get; private set; } /// /// The time that the job started.