Add CreatedAt to WorkflowJob model (#2729)

* make some fields nullable on workflowjob

* add CreatedAt to WorkflowJob model
This commit is contained in:
Liam Neville
2023-06-26 14:23:40 -07:00
committed by GitHub
parent b4b3534ce8
commit afac3e0bcf
2 changed files with 9 additions and 1 deletions
+7 -1
View File
@@ -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<WorkflowJobStep> steps, string checkRunUrl, IReadOnlyList<string> 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<WorkflowJobStep> steps, string checkRunUrl, IReadOnlyList<string> labels, long? runnerId = default, string runnerName = default, long? runnerGroupId = default, string runnerGroupName = default)
{
Id = id;
RunId = runId;
@@ -21,6 +21,7 @@ namespace Octokit
HtmlUrl = htmlUrl;
Status = status;
Conclusion = conclusion;
CreatedAt = createdAt;
StartedAt = startedAt;
CompletedAt = completedAt;
Name = name;
@@ -78,6 +79,11 @@ namespace Octokit
/// </summary>
public StringEnum<WorkflowJobConclusion>? Conclusion { get; private set; }
/// <summary>
/// The time that the job was created.
/// </summary>
public DateTimeOffset CreatedAt { get; private set; }
/// <summary>
/// The time that the job started.
/// </summary>