From e1d587bc48951c2c3d3e2817294339b44a40f6fc Mon Sep 17 00:00:00 2001 From: Liam Neville Date: Fri, 16 Jun 2023 10:48:35 -0700 Subject: [PATCH] [BUG] Fix Deserializing WorkflowJob (#2725) make some fields nullable on workflowjob --- Octokit/Models/Response/WorkflowJob.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Octokit/Models/Response/WorkflowJob.cs b/Octokit/Models/Response/WorkflowJob.cs index 34f9213a..d485d425 100644 --- a/Octokit/Models/Response/WorkflowJob.cs +++ b/Octokit/Models/Response/WorkflowJob.cs @@ -10,7 +10,7 @@ namespace Octokit { public WorkflowJob() { } - public WorkflowJob(long id, long runId, string runUrl, string nodeId, string headSha, string url, string htmlUrl, WorkflowJobStatus status, WorkflowJobConclusion? conclusion, DateTimeOffset startedAt, DateTimeOffset? completedAt, string name, IReadOnlyList steps, string checkRunUrl, IReadOnlyList labels, long runnerId, string runnerName, long runnerGroupId, string runnerGroupName) + public WorkflowJob(long id, long runId, string runUrl, string nodeId, string headSha, string url, string htmlUrl, WorkflowJobStatus status, WorkflowJobConclusion? conclusion, 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; @@ -111,7 +111,7 @@ namespace Octokit /// /// The Id of the runner to which this job has been assigned. /// - public long RunnerId { get; private set; } + public long? RunnerId { get; private set; } /// /// The name of the runner to which this job has been assigned. @@ -121,7 +121,7 @@ namespace Octokit /// /// The Id of the runner group to which this job has been assigned. /// - public long RunnerGroupId { get; private set; } + public long? RunnerGroupId { get; private set; } /// /// The name of the runner group to which this job has been assigned.