From 228503a76efe29e79a129b1940a960d63bf2b7d1 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 1 Feb 2022 21:55:17 -0800 Subject: [PATCH 1/2] fix: add in_progress to deploymentstatus --- .../Models/DeploymentStatusEvent/DeploymentStatusState.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Octokit.Webhooks/Models/DeploymentStatusEvent/DeploymentStatusState.cs b/src/Octokit.Webhooks/Models/DeploymentStatusEvent/DeploymentStatusState.cs index 3509bd95..5c27dad2 100644 --- a/src/Octokit.Webhooks/Models/DeploymentStatusEvent/DeploymentStatusState.cs +++ b/src/Octokit.Webhooks/Models/DeploymentStatusEvent/DeploymentStatusState.cs @@ -8,6 +8,8 @@ public enum DeploymentStatusState { [EnumMember(Value = "pending")] Pending, + [EnumMember(Value = "in_progress")] + InProgress, [EnumMember(Value = "success")] Success, [EnumMember(Value = "failure")] From 11f7a95fdd80fdb31d5aa0e15ce4afc9103fd897 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 1 Feb 2022 21:55:50 -0800 Subject: [PATCH 2/2] fix: discussion type fixes --- .../Models/{DiscussionEvent => }/Discussion.cs | 4 ++-- .../Models/{DiscussionEvent => }/DiscussionAnswer.cs | 2 +- .../Models/{DiscussionEvent => }/DiscussionCategory.cs | 4 ++-- .../Models/{DiscussionEvent => }/DiscussionState.cs | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename src/Octokit.Webhooks/Models/{DiscussionEvent => }/Discussion.cs (96%) rename src/Octokit.Webhooks/Models/{DiscussionEvent => }/DiscussionAnswer.cs (97%) rename src/Octokit.Webhooks/Models/{DiscussionEvent => }/DiscussionCategory.cs (92%) rename src/Octokit.Webhooks/Models/{DiscussionEvent => }/DiscussionState.cs (100%) diff --git a/src/Octokit.Webhooks/Models/DiscussionEvent/Discussion.cs b/src/Octokit.Webhooks/Models/Discussion.cs similarity index 96% rename from src/Octokit.Webhooks/Models/DiscussionEvent/Discussion.cs rename to src/Octokit.Webhooks/Models/Discussion.cs index 3a4adcb4..933f2f0d 100644 --- a/src/Octokit.Webhooks/Models/DiscussionEvent/Discussion.cs +++ b/src/Octokit.Webhooks/Models/Discussion.cs @@ -1,4 +1,4 @@ -namespace Octokit.Webhooks.Models +namespace Octokit.Webhooks.Models { using System; using System.Text.Json.Serialization; @@ -46,7 +46,7 @@ public sealed record Discussion public DiscussionState State { get; init; } [JsonPropertyName("locked")] - public long Locked { get; init; } + public bool Locked { get; init; } [JsonPropertyName("comments")] public long Comments { get; init; } diff --git a/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionAnswer.cs b/src/Octokit.Webhooks/Models/DiscussionAnswer.cs similarity index 97% rename from src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionAnswer.cs rename to src/Octokit.Webhooks/Models/DiscussionAnswer.cs index f47978e5..c8d4a3a4 100644 --- a/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionAnswer.cs +++ b/src/Octokit.Webhooks/Models/DiscussionAnswer.cs @@ -1,4 +1,4 @@ -namespace Octokit.Webhooks.Models +namespace Octokit.Webhooks.Models { using System; using System.Text.Json.Serialization; diff --git a/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionCategory.cs b/src/Octokit.Webhooks/Models/DiscussionCategory.cs similarity index 92% rename from src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionCategory.cs rename to src/Octokit.Webhooks/Models/DiscussionCategory.cs index 1d759f9d..5b829143 100644 --- a/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionCategory.cs +++ b/src/Octokit.Webhooks/Models/DiscussionCategory.cs @@ -1,4 +1,4 @@ -namespace Octokit.Webhooks.Models +namespace Octokit.Webhooks.Models { using System; using System.Text.Json.Serialization; @@ -35,6 +35,6 @@ public sealed record DiscussionCategory public string Slug { get; init; } = null!; [JsonPropertyName("is_answerable")] - public long IsAnswerable { get; init; } + public bool IsAnswerable { get; init; } } } diff --git a/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionState.cs b/src/Octokit.Webhooks/Models/DiscussionState.cs similarity index 100% rename from src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionState.cs rename to src/Octokit.Webhooks/Models/DiscussionState.cs