mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 04:40:54 +00:00
Add CreatedAt to WorkflowJob model (#2729)
* make some fields nullable on workflowjob * add CreatedAt to WorkflowJob model
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user