From d8e4e0590ad1a064250ad417a5fbff01d77e89c0 Mon Sep 17 00:00:00 2001 From: martincostello Date: Tue, 29 Mar 2022 09:59:37 +0100 Subject: [PATCH] feat: Add previous_attempt_url - Add missing `previous_attempt_url` property. - Sort properties according to the schema. --- src/Octokit.Webhooks/Models/WorkflowRun.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Octokit.Webhooks/Models/WorkflowRun.cs b/src/Octokit.Webhooks/Models/WorkflowRun.cs index fed979ae..84946b50 100644 --- a/src/Octokit.Webhooks/Models/WorkflowRun.cs +++ b/src/Octokit.Webhooks/Models/WorkflowRun.cs @@ -92,9 +92,6 @@ 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; } @@ -102,6 +99,12 @@ public sealed record WorkflowRun [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!; }