Skip to content

Commit

Permalink
feat: Add previous_attempt_url
Browse files Browse the repository at this point in the history
- Add missing `previous_attempt_url` property.
- Sort properties according to the schema.
  • Loading branch information
martincostello committed Mar 29, 2022
1 parent 55a8061 commit d8e4e05
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Octokit.Webhooks/Models/WorkflowRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,19 @@ public sealed record WorkflowRun
[JsonPropertyName("workflow_url")]
public string WorkflowUrl { get; init; } = null!;

[JsonPropertyName("actor")]
public User Actor { get; init; } = null!;

[JsonPropertyName("run_attempt")]
public long RunAttempt { get; init; }

[JsonPropertyName("run_started_at")]
[JsonConverter(typeof(DateTimeOffsetConverter))]
public DateTimeOffset RunStartedAt { get; init; }

[JsonPropertyName("previous_attempt_url")]
public string? PreviousAttemptUrl { get; init; }

[JsonPropertyName("actor")]
public User Actor { get; init; } = null!;

[JsonPropertyName("triggering_actor")]
public User TriggeringActor { get; init; } = null!;
}
Expand Down

0 comments on commit d8e4e05

Please sign in to comment.