diff --git a/src/Octokit.Webhooks/Events/MetaEvent.cs b/src/Octokit.Webhooks/Events/MetaEvent.cs index 4c25535c..fc2acf7b 100644 --- a/src/Octokit.Webhooks/Events/MetaEvent.cs +++ b/src/Octokit.Webhooks/Events/MetaEvent.cs @@ -11,7 +11,7 @@ public abstract record MetaEvent : WebhookEvent { [JsonPropertyName("hook_id")] - public int HookId { get; init; } + public long HookId { get; init; } [JsonPropertyName("hook")] public Hook Hook { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Events/PageBuildEvent.cs b/src/Octokit.Webhooks/Events/PageBuildEvent.cs index 21063201..718e32bf 100644 --- a/src/Octokit.Webhooks/Events/PageBuildEvent.cs +++ b/src/Octokit.Webhooks/Events/PageBuildEvent.cs @@ -9,7 +9,7 @@ public sealed record PageBuildEvent : WebhookEvent { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("build")] public Build Build { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Events/PingEvent.cs b/src/Octokit.Webhooks/Events/PingEvent.cs index f926d13f..dfe2891c 100644 --- a/src/Octokit.Webhooks/Events/PingEvent.cs +++ b/src/Octokit.Webhooks/Events/PingEvent.cs @@ -12,7 +12,7 @@ public sealed record PingEvent : WebhookEvent public string Zen { get; init; } = null!; [JsonPropertyName("hook_id")] - public int HookId { get; init; } + public long HookId { get; init; } [JsonPropertyName("hook")] public Hook Hook { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Events/PullRequestEvent.cs b/src/Octokit.Webhooks/Events/PullRequestEvent.cs index 669b3388..b98e968b 100644 --- a/src/Octokit.Webhooks/Events/PullRequestEvent.cs +++ b/src/Octokit.Webhooks/Events/PullRequestEvent.cs @@ -10,7 +10,7 @@ public abstract record PullRequestEvent : WebhookEvent { [JsonPropertyName("number")] - public int Number { get; init; } + public long Number { get; init; } [JsonPropertyName("pull_request")] public Models.PullRequestEvent.PullRequest PullRequest { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Events/StatusEvent.cs b/src/Octokit.Webhooks/Events/StatusEvent.cs index 0e3d8950..4f21aa33 100644 --- a/src/Octokit.Webhooks/Events/StatusEvent.cs +++ b/src/Octokit.Webhooks/Events/StatusEvent.cs @@ -10,7 +10,7 @@ public sealed record StatusEvent : WebhookEvent { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("sha")] public string Sha { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/App.cs b/src/Octokit.Webhooks/Models/App.cs index 8f8e59f0..8980aeb3 100644 --- a/src/Octokit.Webhooks/Models/App.cs +++ b/src/Octokit.Webhooks/Models/App.cs @@ -8,7 +8,7 @@ public sealed record App { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("slug")] public string? Slug { get; init; } diff --git a/src/Octokit.Webhooks/Models/BranchProtectionRule.cs b/src/Octokit.Webhooks/Models/BranchProtectionRule.cs index 7bc9aa76..4d7358aa 100644 --- a/src/Octokit.Webhooks/Models/BranchProtectionRule.cs +++ b/src/Octokit.Webhooks/Models/BranchProtectionRule.cs @@ -8,10 +8,10 @@ public sealed record BranchProtectionRule { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("repository_id")] - public int RepositoryId { get; init; } + public long RepositoryId { get; init; } [JsonPropertyName("name")] public string Name { get; init; } = null!; @@ -59,7 +59,7 @@ public sealed record BranchProtectionRule public bool RequireCodeOwnerReview { get; init; } [JsonPropertyName("required_approving_review_count")] - public int RequiredApprovingReviewCount { get; init; } + public long RequiredApprovingReviewCount { get; init; } [JsonPropertyName("required_conversation_resolution_level")] public EnforcementLevel RequiredConversationResolutionLevel { get; init; } diff --git a/src/Octokit.Webhooks/Models/CheckRunEvent/CheckRun.cs b/src/Octokit.Webhooks/Models/CheckRunEvent/CheckRun.cs index 887c2ef4..2fb02a34 100644 --- a/src/Octokit.Webhooks/Models/CheckRunEvent/CheckRun.cs +++ b/src/Octokit.Webhooks/Models/CheckRunEvent/CheckRun.cs @@ -8,7 +8,7 @@ public sealed record CheckRun { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/CheckRunEvent/CheckRunOutput.cs b/src/Octokit.Webhooks/Models/CheckRunEvent/CheckRunOutput.cs index 719f5a72..adb3db17 100644 --- a/src/Octokit.Webhooks/Models/CheckRunEvent/CheckRunOutput.cs +++ b/src/Octokit.Webhooks/Models/CheckRunEvent/CheckRunOutput.cs @@ -16,7 +16,7 @@ public sealed record CheckRunOutput public string? Text { get; init; } [JsonPropertyName("annotations_count")] - public int AnnotationsCount { get; init; } + public long AnnotationsCount { get; init; } [JsonPropertyName("annotations_url")] public string AnnotationsUrl { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/CheckRunEvent/CheckRunPullRequest.cs b/src/Octokit.Webhooks/Models/CheckRunEvent/CheckRunPullRequest.cs index 92aff6df..ba35f37f 100644 --- a/src/Octokit.Webhooks/Models/CheckRunEvent/CheckRunPullRequest.cs +++ b/src/Octokit.Webhooks/Models/CheckRunEvent/CheckRunPullRequest.cs @@ -10,10 +10,10 @@ public sealed record CheckRunPullRequest public string Url { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("number")] - public int Number { get; init; } + public long Number { get; init; } [JsonPropertyName("head")] public CheckRunPullRequestHead Head { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/CheckRunEvent/CheckSuite.cs b/src/Octokit.Webhooks/Models/CheckRunEvent/CheckSuite.cs index 807d2efd..526f4db7 100644 --- a/src/Octokit.Webhooks/Models/CheckRunEvent/CheckSuite.cs +++ b/src/Octokit.Webhooks/Models/CheckRunEvent/CheckSuite.cs @@ -8,7 +8,7 @@ public sealed record CheckSuite { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string? NodeId { get; init; } diff --git a/src/Octokit.Webhooks/Models/CheckRunEvent/Deployment.cs b/src/Octokit.Webhooks/Models/CheckRunEvent/Deployment.cs index 8f6d41e7..2dd2f63a 100644 --- a/src/Octokit.Webhooks/Models/CheckRunEvent/Deployment.cs +++ b/src/Octokit.Webhooks/Models/CheckRunEvent/Deployment.cs @@ -10,7 +10,7 @@ public sealed record Deployment public string Url { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/CheckSuiteEvent/CheckSuite.cs b/src/Octokit.Webhooks/Models/CheckSuiteEvent/CheckSuite.cs index 6ad35a0f..f509e106 100644 --- a/src/Octokit.Webhooks/Models/CheckSuiteEvent/CheckSuite.cs +++ b/src/Octokit.Webhooks/Models/CheckSuiteEvent/CheckSuite.cs @@ -9,7 +9,7 @@ public sealed record CheckSuite { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string? NodeId { get; init; } @@ -48,7 +48,7 @@ public sealed record CheckSuite public string UpdatedAt { get; init; } = null!; [JsonPropertyName("latest_check_runs_count")] - public int LatestCheckRunsCount { get; init; } + public long LatestCheckRunsCount { get; init; } [JsonPropertyName("check_runs_url")] public string CheckRunsUrl { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/CodeScanningAlertEvent/Alert.cs b/src/Octokit.Webhooks/Models/CodeScanningAlertEvent/Alert.cs index b6b5e21f..8fe207b7 100644 --- a/src/Octokit.Webhooks/Models/CodeScanningAlertEvent/Alert.cs +++ b/src/Octokit.Webhooks/Models/CodeScanningAlertEvent/Alert.cs @@ -8,7 +8,7 @@ public sealed record Alert { [JsonPropertyName("number")] - public int Number { get; init; } + public long Number { get; init; } [JsonPropertyName("created_at")] public string CreatedAt { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/CommitCommentEvent/Comment.cs b/src/Octokit.Webhooks/Models/CommitCommentEvent/Comment.cs index 340a3da8..f0dd9c5f 100644 --- a/src/Octokit.Webhooks/Models/CommitCommentEvent/Comment.cs +++ b/src/Octokit.Webhooks/Models/CommitCommentEvent/Comment.cs @@ -13,7 +13,7 @@ public sealed record Comment public string HtmlUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/ContentReferenceEvent/ContentReference.cs b/src/Octokit.Webhooks/Models/ContentReferenceEvent/ContentReference.cs index 5b6567e4..ba348e42 100644 --- a/src/Octokit.Webhooks/Models/ContentReferenceEvent/ContentReference.cs +++ b/src/Octokit.Webhooks/Models/ContentReferenceEvent/ContentReference.cs @@ -7,7 +7,7 @@ public sealed record ContentReference { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/DeployKeyEvent/DeployKey.cs b/src/Octokit.Webhooks/Models/DeployKeyEvent/DeployKey.cs index 842a4e4d..e6118a28 100644 --- a/src/Octokit.Webhooks/Models/DeployKeyEvent/DeployKey.cs +++ b/src/Octokit.Webhooks/Models/DeployKeyEvent/DeployKey.cs @@ -7,7 +7,7 @@ public sealed record DeployKey { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("key")] public string Key { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/DeploymentEvent/Deployment.cs b/src/Octokit.Webhooks/Models/DeploymentEvent/Deployment.cs index 16265aeb..727f1152 100644 --- a/src/Octokit.Webhooks/Models/DeploymentEvent/Deployment.cs +++ b/src/Octokit.Webhooks/Models/DeploymentEvent/Deployment.cs @@ -10,7 +10,7 @@ public sealed record Deployment public string Url { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/DeploymentStatusEvent/Deployment.cs b/src/Octokit.Webhooks/Models/DeploymentStatusEvent/Deployment.cs index 74b28468..96edcb74 100644 --- a/src/Octokit.Webhooks/Models/DeploymentStatusEvent/Deployment.cs +++ b/src/Octokit.Webhooks/Models/DeploymentStatusEvent/Deployment.cs @@ -10,7 +10,7 @@ public sealed record Deployment public string Url { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/DeploymentStatusEvent/DeploymentStatus.cs b/src/Octokit.Webhooks/Models/DeploymentStatusEvent/DeploymentStatus.cs index a8045d78..69cea052 100644 --- a/src/Octokit.Webhooks/Models/DeploymentStatusEvent/DeploymentStatus.cs +++ b/src/Octokit.Webhooks/Models/DeploymentStatusEvent/DeploymentStatus.cs @@ -10,7 +10,7 @@ public sealed record DeploymentStatus public string Url { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/DiscussionCommentEvent/DiscussionComment.cs b/src/Octokit.Webhooks/Models/DiscussionCommentEvent/DiscussionComment.cs index 6ea34008..22515276 100644 --- a/src/Octokit.Webhooks/Models/DiscussionCommentEvent/DiscussionComment.cs +++ b/src/Octokit.Webhooks/Models/DiscussionCommentEvent/DiscussionComment.cs @@ -7,7 +7,7 @@ public sealed record DiscussionComment { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; @@ -19,13 +19,13 @@ public sealed record DiscussionComment public int? ParentId { get; init; } [JsonPropertyName("child_comment_count")] - public int ChildCommentCount { get; init; } + public long ChildCommentCount { get; init; } [JsonPropertyName("repository_url")] public string RepositoryUrl { get; init; } = null!; [JsonPropertyName("discussion_id")] - public int DiscussionId { get; init; } + public long DiscussionId { get; init; } [JsonPropertyName("author_association")] public AuthorAssociation AuthorAssociation { get; init; } diff --git a/src/Octokit.Webhooks/Models/DiscussionEvent/Discussion.cs b/src/Octokit.Webhooks/Models/DiscussionEvent/Discussion.cs index 68ee6b07..73a70aa2 100644 --- a/src/Octokit.Webhooks/Models/DiscussionEvent/Discussion.cs +++ b/src/Octokit.Webhooks/Models/DiscussionEvent/Discussion.cs @@ -25,13 +25,13 @@ public sealed record Discussion public string HtmlUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; [JsonPropertyName("number")] - public int Number { get; init; } + public long Number { get; init; } [JsonPropertyName("title")] public string Title { get; init; } = null!; @@ -43,10 +43,10 @@ public sealed record Discussion public DiscussionState State { get; init; } [JsonPropertyName("locked")] - public int Locked { get; init; } + public long Locked { get; init; } [JsonPropertyName("comments")] - public int Comments { get; init; } + public long Comments { get; init; } [JsonPropertyName("created_at")] public string CreatedAt { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionAnswer.cs b/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionAnswer.cs index da264b80..e2232d4d 100644 --- a/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionAnswer.cs +++ b/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionAnswer.cs @@ -7,7 +7,7 @@ public sealed record DiscussionAnswer { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; @@ -19,13 +19,13 @@ public sealed record DiscussionAnswer public int? ParentId { get; init; } [JsonPropertyName("child_comment_count")] - public int ChildCommentCount { get; init; } + public long ChildCommentCount { get; init; } [JsonPropertyName("repository_url")] public string RepositoryUrl { get; init; } = null!; [JsonPropertyName("discussion_id")] - public int DiscussionId { get; init; } + public long DiscussionId { get; init; } [JsonPropertyName("author_association")] public AuthorAssociation AuthorAssociation { get; init; } diff --git a/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionCategory.cs b/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionCategory.cs index 0101abc5..6f3ae235 100644 --- a/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionCategory.cs +++ b/src/Octokit.Webhooks/Models/DiscussionEvent/DiscussionCategory.cs @@ -7,10 +7,10 @@ public sealed record DiscussionCategory { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("repository_id")] - public int RepositoryId { get; init; } + public long RepositoryId { get; init; } [JsonPropertyName("emoji")] public string Emoji { get; init; } = null!; @@ -31,6 +31,6 @@ public sealed record DiscussionCategory public string Slug { get; init; } = null!; [JsonPropertyName("is_answerable")] - public int IsAnswerable { get; init; } + public long IsAnswerable { get; init; } } } diff --git a/src/Octokit.Webhooks/Models/Installation.cs b/src/Octokit.Webhooks/Models/Installation.cs index db899b15..53873e61 100644 --- a/src/Octokit.Webhooks/Models/Installation.cs +++ b/src/Octokit.Webhooks/Models/Installation.cs @@ -8,7 +8,7 @@ public sealed record Installation { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("account")] public User Account { get; init; } = null!; @@ -26,13 +26,13 @@ public sealed record Installation public string HtmlUrl { get; init; } = null!; [JsonPropertyName("app_id")] - public int AppId { get; init; } + public long AppId { get; init; } [JsonPropertyName("app_slug")] public string? AppSlug { get; init; } [JsonPropertyName("target_id")] - public int TargetId { get; init; } + public long TargetId { get; init; } [JsonPropertyName("target_type")] public InstallationTargetType TargetType { get; init; } diff --git a/src/Octokit.Webhooks/Models/InstallationEvent/Repository.cs b/src/Octokit.Webhooks/Models/InstallationEvent/Repository.cs index ffeca8eb..efc3fc13 100644 --- a/src/Octokit.Webhooks/Models/InstallationEvent/Repository.cs +++ b/src/Octokit.Webhooks/Models/InstallationEvent/Repository.cs @@ -7,7 +7,7 @@ public sealed record Repository { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/InstallationLite.cs b/src/Octokit.Webhooks/Models/InstallationLite.cs index 1a0132b4..b6abb1af 100644 --- a/src/Octokit.Webhooks/Models/InstallationLite.cs +++ b/src/Octokit.Webhooks/Models/InstallationLite.cs @@ -7,7 +7,7 @@ public sealed record InstallationLite { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/InstallationRepositoriesEvent/Repository.cs b/src/Octokit.Webhooks/Models/InstallationRepositoriesEvent/Repository.cs index 0c2c93a4..3e2d9d8f 100644 --- a/src/Octokit.Webhooks/Models/InstallationRepositoriesEvent/Repository.cs +++ b/src/Octokit.Webhooks/Models/InstallationRepositoriesEvent/Repository.cs @@ -7,7 +7,7 @@ public sealed record Repository { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/Issue.cs b/src/Octokit.Webhooks/Models/Issue.cs index 7586297d..691968dd 100644 --- a/src/Octokit.Webhooks/Models/Issue.cs +++ b/src/Octokit.Webhooks/Models/Issue.cs @@ -26,13 +26,13 @@ public sealed record Issue public string HtmlUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; [JsonPropertyName("number")] - public int Number { get; init; } + public long Number { get; init; } [JsonPropertyName("title")] public string Title { get; init; } = null!; @@ -59,7 +59,7 @@ public sealed record Issue public Milestone? Milestone { get; init; } [JsonPropertyName("comments")] - public int Comments { get; init; } + public long Comments { get; init; } [JsonPropertyName("created_at")] public string CreatedAt { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/IssueComment.cs b/src/Octokit.Webhooks/Models/IssueComment.cs index 86517e35..ba6372b3 100644 --- a/src/Octokit.Webhooks/Models/IssueComment.cs +++ b/src/Octokit.Webhooks/Models/IssueComment.cs @@ -16,7 +16,7 @@ public sealed record IssueComment public string IssueUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/Label.cs b/src/Octokit.Webhooks/Models/Label.cs index 63b1751d..fe230cf7 100644 --- a/src/Octokit.Webhooks/Models/Label.cs +++ b/src/Octokit.Webhooks/Models/Label.cs @@ -7,7 +7,7 @@ public sealed record Label { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/MarketplacePurchase.cs b/src/Octokit.Webhooks/Models/MarketplacePurchase.cs index 20d4a01a..7d9d6d4d 100644 --- a/src/Octokit.Webhooks/Models/MarketplacePurchase.cs +++ b/src/Octokit.Webhooks/Models/MarketplacePurchase.cs @@ -13,7 +13,7 @@ public sealed record MarketplacePurchase public string BillingCycle { get; init; } = null!; [JsonPropertyName("unit_count")] - public int UnitCount { get; init; } + public long UnitCount { get; init; } [JsonPropertyName("on_free_trial")] public bool OnFreeTrial { get; init; } diff --git a/src/Octokit.Webhooks/Models/MarkplacePurchaseAccount.cs b/src/Octokit.Webhooks/Models/MarkplacePurchaseAccount.cs index 9576ae1f..ef1e25cf 100644 --- a/src/Octokit.Webhooks/Models/MarkplacePurchaseAccount.cs +++ b/src/Octokit.Webhooks/Models/MarkplacePurchaseAccount.cs @@ -10,7 +10,7 @@ public sealed record MarkplacePurchaseAccount public string Type { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/MarkplacePurchasePlan.cs b/src/Octokit.Webhooks/Models/MarkplacePurchasePlan.cs index 6c105fe2..25a8f7c8 100644 --- a/src/Octokit.Webhooks/Models/MarkplacePurchasePlan.cs +++ b/src/Octokit.Webhooks/Models/MarkplacePurchasePlan.cs @@ -8,7 +8,7 @@ public sealed record MarkplacePurchasePlan { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("name")] public string Name { get; init; } = null!; @@ -17,10 +17,10 @@ public sealed record MarkplacePurchasePlan public string Description { get; init; } = null!; [JsonPropertyName("monthly_price_in_cents")] - public int MonthlyPriceInCents { get; init; } + public long MonthlyPriceInCents { get; init; } [JsonPropertyName("yearly_price_in_cents")] - public int YearlyPriceInCents { get; init; } + public long YearlyPriceInCents { get; init; } [JsonPropertyName("price_model")] public string PriceModel { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/MetaEvent/Hook.cs b/src/Octokit.Webhooks/Models/MetaEvent/Hook.cs index 475a756d..8fd57484 100644 --- a/src/Octokit.Webhooks/Models/MetaEvent/Hook.cs +++ b/src/Octokit.Webhooks/Models/MetaEvent/Hook.cs @@ -11,7 +11,7 @@ public sealed record Hook public string Type { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("name")] public string Name { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/Milestone.cs b/src/Octokit.Webhooks/Models/Milestone.cs index 6e2cc77c..194f3101 100644 --- a/src/Octokit.Webhooks/Models/Milestone.cs +++ b/src/Octokit.Webhooks/Models/Milestone.cs @@ -16,13 +16,13 @@ public sealed record Milestone public string LabelsUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; [JsonPropertyName("number")] - public int Number { get; init; } + public long Number { get; init; } [JsonPropertyName("title")] public string Title { get; init; } = null!; @@ -34,10 +34,10 @@ public sealed record Milestone public User Creator { get; init; } = null!; [JsonPropertyName("open_issues")] - public int OpenIssues { get; init; } + public long OpenIssues { get; init; } [JsonPropertyName("closed_issues")] - public int ClosedIssues { get; init; } + public long ClosedIssues { get; init; } [JsonPropertyName("state")] public MilestoneState State { get; init; } diff --git a/src/Octokit.Webhooks/Models/Organization.cs b/src/Octokit.Webhooks/Models/Organization.cs index 3245c370..dd7b29b7 100644 --- a/src/Octokit.Webhooks/Models/Organization.cs +++ b/src/Octokit.Webhooks/Models/Organization.cs @@ -10,7 +10,7 @@ public sealed record Organization public string Login { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/OrganizationEvent/Invitation.cs b/src/Octokit.Webhooks/Models/OrganizationEvent/Invitation.cs index eec4f5d2..1fd36a26 100644 --- a/src/Octokit.Webhooks/Models/OrganizationEvent/Invitation.cs +++ b/src/Octokit.Webhooks/Models/OrganizationEvent/Invitation.cs @@ -7,7 +7,7 @@ public sealed record Invitation { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; @@ -34,7 +34,7 @@ public sealed record Invitation public User Inviter { get; init; } = null!; [JsonPropertyName("team_count")] - public int TeamCount { get; init; } + public long TeamCount { get; init; } [JsonPropertyName("invitation_teams_url")] public string InvitationTeamsUrl { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/Package.cs b/src/Octokit.Webhooks/Models/Package.cs index b6162e22..a37e8e0b 100644 --- a/src/Octokit.Webhooks/Models/Package.cs +++ b/src/Octokit.Webhooks/Models/Package.cs @@ -7,7 +7,7 @@ public sealed record Package { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("name")] public string Name { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/PackageVersion.cs b/src/Octokit.Webhooks/Models/PackageVersion.cs index 37e62ee0..0723de6f 100644 --- a/src/Octokit.Webhooks/Models/PackageVersion.cs +++ b/src/Octokit.Webhooks/Models/PackageVersion.cs @@ -8,7 +8,7 @@ public sealed record PackageVersion { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("version")] public string Version { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/PackageVersionPackageFile.cs b/src/Octokit.Webhooks/Models/PackageVersionPackageFile.cs index ee4639bc..80af3acc 100644 --- a/src/Octokit.Webhooks/Models/PackageVersionPackageFile.cs +++ b/src/Octokit.Webhooks/Models/PackageVersionPackageFile.cs @@ -10,7 +10,7 @@ public sealed record PackageVersionPackageFile public string DownloadUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("name")] public string Name { get; init; } = null!; @@ -31,7 +31,7 @@ public sealed record PackageVersionPackageFile public string State { get; init; } = null!; [JsonPropertyName("size")] - public int Size { get; init; } + public long Size { get; init; } [JsonPropertyName("created_at")] public string CreatedAt { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/PackageVersionRelease.cs b/src/Octokit.Webhooks/Models/PackageVersionRelease.cs index ed72431f..8aa38b8f 100644 --- a/src/Octokit.Webhooks/Models/PackageVersionRelease.cs +++ b/src/Octokit.Webhooks/Models/PackageVersionRelease.cs @@ -13,7 +13,7 @@ public sealed record PackageVersionRelease public string HtmlUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("tag_name")] public string TagName { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/PageBuildEvent/Build.cs b/src/Octokit.Webhooks/Models/PageBuildEvent/Build.cs index b0ce5f3f..a50e755e 100644 --- a/src/Octokit.Webhooks/Models/PageBuildEvent/Build.cs +++ b/src/Octokit.Webhooks/Models/PageBuildEvent/Build.cs @@ -22,7 +22,7 @@ public sealed record Build public string Commit { get; init; } = null!; [JsonPropertyName("duration")] - public int Duration { get; init; } + public long Duration { get; init; } [JsonPropertyName("created_at")] public string CreatedAt { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/PingEvent/Hook.cs b/src/Octokit.Webhooks/Models/PingEvent/Hook.cs index 0fe07709..88ea8f16 100644 --- a/src/Octokit.Webhooks/Models/PingEvent/Hook.cs +++ b/src/Octokit.Webhooks/Models/PingEvent/Hook.cs @@ -11,7 +11,7 @@ public sealed record Hook public string Type { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("name")] public string Name { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/Project.cs b/src/Octokit.Webhooks/Models/Project.cs index f591d691..27020732 100644 --- a/src/Octokit.Webhooks/Models/Project.cs +++ b/src/Octokit.Webhooks/Models/Project.cs @@ -19,7 +19,7 @@ public sealed record Project public string ColumnsUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; @@ -31,7 +31,7 @@ public sealed record Project public string? Body { get; init; } [JsonPropertyName("number")] - public int Number { get; init; } + public long Number { get; init; } [JsonPropertyName("state")] public ProjectState State { get; init; } diff --git a/src/Octokit.Webhooks/Models/ProjectCard.cs b/src/Octokit.Webhooks/Models/ProjectCard.cs index 270f4c67..a895ff9e 100644 --- a/src/Octokit.Webhooks/Models/ProjectCard.cs +++ b/src/Octokit.Webhooks/Models/ProjectCard.cs @@ -16,10 +16,10 @@ public sealed record ProjectCard public string ColumnUrl { get; init; } = null!; [JsonPropertyName("column_id")] - public int ColumnId { get; init; } + public long ColumnId { get; init; } [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; @@ -28,7 +28,7 @@ public sealed record ProjectCard public string? Note { get; init; } [JsonPropertyName("archived")] - public int Archived { get; init; } + public long Archived { get; init; } [JsonPropertyName("creator")] public User Creator { get; init; } = null!; @@ -43,6 +43,6 @@ public sealed record ProjectCard public string? ContentUrl { get; init; } [JsonPropertyName("after_id")] - public int AfterId { get; init; } + public long AfterId { get; init; } } } diff --git a/src/Octokit.Webhooks/Models/ProjectCardEvent/ChangesColumnId.cs b/src/Octokit.Webhooks/Models/ProjectCardEvent/ChangesColumnId.cs index 1c08bb59..1c20babe 100644 --- a/src/Octokit.Webhooks/Models/ProjectCardEvent/ChangesColumnId.cs +++ b/src/Octokit.Webhooks/Models/ProjectCardEvent/ChangesColumnId.cs @@ -7,6 +7,6 @@ public sealed record ChangesColumnId { [JsonPropertyName("from")] - public int From { get; init; } + public long From { get; init; } } } diff --git a/src/Octokit.Webhooks/Models/ProjectColumn.cs b/src/Octokit.Webhooks/Models/ProjectColumn.cs index 11f436ec..b26b4a90 100644 --- a/src/Octokit.Webhooks/Models/ProjectColumn.cs +++ b/src/Octokit.Webhooks/Models/ProjectColumn.cs @@ -16,7 +16,7 @@ public sealed record ProjectColumn public string CardsUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/PullRequestEvent/PullRequest.cs b/src/Octokit.Webhooks/Models/PullRequestEvent/PullRequest.cs index d644b4f8..1f10ffc2 100644 --- a/src/Octokit.Webhooks/Models/PullRequestEvent/PullRequest.cs +++ b/src/Octokit.Webhooks/Models/PullRequestEvent/PullRequest.cs @@ -14,7 +14,7 @@ public sealed record PullRequest public string Url { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; @@ -32,7 +32,7 @@ public sealed record PullRequest public string IssueUrl { get; init; } = null!; [JsonPropertyName("number")] - public int Number { get; init; } + public long Number { get; init; } [JsonPropertyName("state")] public PullRequestState State { get; init; } @@ -131,24 +131,24 @@ public sealed record PullRequest public User? MergedBy { get; init; } [JsonPropertyName("comments")] - public int Comments { get; init; } + public long Comments { get; init; } [JsonPropertyName("review_comments")] - public int ReviewComments { get; init; } + public long ReviewComments { get; init; } [JsonPropertyName("maintainer_can_modify")] public bool MaintainerCanModify { get; init; } [JsonPropertyName("commits")] - public int Commits { get; init; } + public long Commits { get; init; } [JsonPropertyName("additions")] - public int Additions { get; init; } + public long Additions { get; init; } [JsonPropertyName("deletions")] - public int Deletions { get; init; } + public long Deletions { get; init; } [JsonPropertyName("changed_files")] - public int ChangedFiles { get; init; } + public long ChangedFiles { get; init; } } } diff --git a/src/Octokit.Webhooks/Models/PullRequestReviewComment.cs b/src/Octokit.Webhooks/Models/PullRequestReviewComment.cs index dd1f414b..e9a1c995 100644 --- a/src/Octokit.Webhooks/Models/PullRequestReviewComment.cs +++ b/src/Octokit.Webhooks/Models/PullRequestReviewComment.cs @@ -10,10 +10,10 @@ public sealed record PullRequestReviewComment public string Url { get; init; } = null!; [JsonPropertyName("pull_request_review_id")] - public int PullRequestReviewId { get; init; } + public long PullRequestReviewId { get; init; } [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; @@ -28,7 +28,7 @@ public sealed record PullRequestReviewComment public int? Position { get; init; } [JsonPropertyName("original_position")] - public int OriginalPosition { get; init; } + public long OriginalPosition { get; init; } [JsonPropertyName("commit_id")] public string CommitId { get; init; } = null!; @@ -73,7 +73,7 @@ public sealed record PullRequestReviewComment public int? Line { get; init; } [JsonPropertyName("original_line")] - public int OriginalLine { get; init; } + public long OriginalLine { get; init; } [JsonPropertyName("side")] public Side Side { get; init; } diff --git a/src/Octokit.Webhooks/Models/PullRequestReviewEvent/Review.cs b/src/Octokit.Webhooks/Models/PullRequestReviewEvent/Review.cs index 2803cac6..386ae602 100644 --- a/src/Octokit.Webhooks/Models/PullRequestReviewEvent/Review.cs +++ b/src/Octokit.Webhooks/Models/PullRequestReviewEvent/Review.cs @@ -7,7 +7,7 @@ public sealed record Review { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/Release.cs b/src/Octokit.Webhooks/Models/Release.cs index 2e4a1f87..27c3db8a 100644 --- a/src/Octokit.Webhooks/Models/Release.cs +++ b/src/Octokit.Webhooks/Models/Release.cs @@ -20,7 +20,7 @@ public sealed record Release public string HtmlUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/ReleaseAsset.cs b/src/Octokit.Webhooks/Models/ReleaseAsset.cs index 60c9f062..eef17f5e 100644 --- a/src/Octokit.Webhooks/Models/ReleaseAsset.cs +++ b/src/Octokit.Webhooks/Models/ReleaseAsset.cs @@ -13,7 +13,7 @@ public sealed record ReleaseAsset public string BrowserDownloadUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; @@ -31,10 +31,10 @@ public sealed record ReleaseAsset public string ContentType { get; init; } = null!; [JsonPropertyName("size")] - public int Size { get; init; } + public long Size { get; init; } [JsonPropertyName("download_count")] - public int DownloadCount { get; init; } + public long DownloadCount { get; init; } [JsonPropertyName("created_at")] public string CreatedAt { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/RepoRef.cs b/src/Octokit.Webhooks/Models/RepoRef.cs index 40d9f3e6..72f4e959 100644 --- a/src/Octokit.Webhooks/Models/RepoRef.cs +++ b/src/Octokit.Webhooks/Models/RepoRef.cs @@ -7,7 +7,7 @@ public sealed record RepoRef { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("url")] public string Url { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/Repository.cs b/src/Octokit.Webhooks/Models/Repository.cs index 883a3ad7..ccb9ca03 100644 --- a/src/Octokit.Webhooks/Models/Repository.cs +++ b/src/Octokit.Webhooks/Models/Repository.cs @@ -7,7 +7,7 @@ public sealed record Repository { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; @@ -169,13 +169,13 @@ public sealed record Repository public string? Homepage { get; init; } [JsonPropertyName("size")] - public int Size { get; init; } + public long Size { get; init; } [JsonPropertyName("stargazers_count")] - public int StargazersCount { get; init; } + public long StargazersCount { get; init; } [JsonPropertyName("watchers_count")] - public int WatchersCount { get; init; } + public long WatchersCount { get; init; } [JsonPropertyName("language")] public string? Language { get; init; } @@ -196,7 +196,7 @@ public sealed record Repository public bool HasPages { get; init; } [JsonPropertyName("forks_count")] - public int ForksCount { get; init; } + public long ForksCount { get; init; } [JsonPropertyName("mirror_url")] public string? MirrorUrl { get; init; } @@ -208,19 +208,19 @@ public sealed record Repository public bool? Disabled { get; init; } [JsonPropertyName("open_issues_count")] - public int OpenIssuesCount { get; init; } + public long OpenIssuesCount { get; init; } [JsonPropertyName("license")] public License? License { get; init; } [JsonPropertyName("forks")] - public int Forks { get; init; } + public long Forks { get; init; } [JsonPropertyName("open_issues")] - public int OpenIssues { get; init; } + public long OpenIssues { get; init; } [JsonPropertyName("watchers")] - public int Watchers { get; init; } + public long Watchers { get; init; } [JsonPropertyName("stargazers")] public int? Stargazers { get; init; } diff --git a/src/Octokit.Webhooks/Models/RepositoryLite.cs b/src/Octokit.Webhooks/Models/RepositoryLite.cs index 3d73befa..258328c0 100644 --- a/src/Octokit.Webhooks/Models/RepositoryLite.cs +++ b/src/Octokit.Webhooks/Models/RepositoryLite.cs @@ -73,7 +73,7 @@ public sealed record RepositoryLite public string HtmlUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("issue_comment_url")] public string IssueCommentUrl { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/RepositoryVulnerabilityAlertEvent/Alert.cs b/src/Octokit.Webhooks/Models/RepositoryVulnerabilityAlertEvent/Alert.cs index ecb0c918..bfe9b0ba 100644 --- a/src/Octokit.Webhooks/Models/RepositoryVulnerabilityAlertEvent/Alert.cs +++ b/src/Octokit.Webhooks/Models/RepositoryVulnerabilityAlertEvent/Alert.cs @@ -7,7 +7,7 @@ public sealed record Alert { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("affected_range")] public string AffectedRange { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/SecretScanningAlertEvent/Alert.cs b/src/Octokit.Webhooks/Models/SecretScanningAlertEvent/Alert.cs index c17cd3fb..20bdc46b 100644 --- a/src/Octokit.Webhooks/Models/SecretScanningAlertEvent/Alert.cs +++ b/src/Octokit.Webhooks/Models/SecretScanningAlertEvent/Alert.cs @@ -7,7 +7,7 @@ public sealed record Alert { [JsonPropertyName("number")] - public int Number { get; init; } + public long Number { get; init; } [JsonPropertyName("secret_type")] public string SecretType { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/SecurityAdvisoryEvent/SecurityAdvisoryCvss.cs b/src/Octokit.Webhooks/Models/SecurityAdvisoryEvent/SecurityAdvisoryCvss.cs index 6c7c06dc..71aebcfa 100644 --- a/src/Octokit.Webhooks/Models/SecurityAdvisoryEvent/SecurityAdvisoryCvss.cs +++ b/src/Octokit.Webhooks/Models/SecurityAdvisoryEvent/SecurityAdvisoryCvss.cs @@ -10,6 +10,6 @@ public sealed record SecurityAdvisoryCvss public string? VectorString { get; init; } [JsonPropertyName("score")] - public int Score { get; init; } + public long Score { get; init; } } } diff --git a/src/Octokit.Webhooks/Models/SimplePullRequest.cs b/src/Octokit.Webhooks/Models/SimplePullRequest.cs index f3d5c4db..0f155237 100644 --- a/src/Octokit.Webhooks/Models/SimplePullRequest.cs +++ b/src/Octokit.Webhooks/Models/SimplePullRequest.cs @@ -11,7 +11,7 @@ public sealed record SimplePullRequest public string Url { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; @@ -29,7 +29,7 @@ public sealed record SimplePullRequest public string IssueUrl { get; init; } = null!; [JsonPropertyName("number")] - public int Number { get; init; } + public long Number { get; init; } [JsonPropertyName("state")] public SimplePullRequestState State { get; init; } diff --git a/src/Octokit.Webhooks/Models/SponsorshipEvent/SponsorshipTier.cs b/src/Octokit.Webhooks/Models/SponsorshipEvent/SponsorshipTier.cs index d03c4928..a0c4958d 100644 --- a/src/Octokit.Webhooks/Models/SponsorshipEvent/SponsorshipTier.cs +++ b/src/Octokit.Webhooks/Models/SponsorshipEvent/SponsorshipTier.cs @@ -16,10 +16,10 @@ public sealed record SponsorshipTier public string Description { get; init; } = null!; [JsonPropertyName("monthly_price_in_cents")] - public int MonthlyPriceInCents { get; init; } + public long MonthlyPriceInCents { get; init; } [JsonPropertyName("monthly_price_in_dollars")] - public int MonthlyPriceInDollars { get; init; } + public long MonthlyPriceInDollars { get; init; } [JsonPropertyName("name")] public string Name { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/StatusEvent/CommitDetails.cs b/src/Octokit.Webhooks/Models/StatusEvent/CommitDetails.cs index 9a8a88a6..29b6de35 100644 --- a/src/Octokit.Webhooks/Models/StatusEvent/CommitDetails.cs +++ b/src/Octokit.Webhooks/Models/StatusEvent/CommitDetails.cs @@ -22,6 +22,6 @@ public sealed record CommitDetails public string Url { get; init; } = null!; [JsonPropertyName("comment_count")] - public int CommentCount { get; init; } + public long CommentCount { get; init; } } } diff --git a/src/Octokit.Webhooks/Models/Team.cs b/src/Octokit.Webhooks/Models/Team.cs index 4cf6eac7..4efab9e7 100644 --- a/src/Octokit.Webhooks/Models/Team.cs +++ b/src/Octokit.Webhooks/Models/Team.cs @@ -10,7 +10,7 @@ public sealed record Team public string Name { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/TeamParent.cs b/src/Octokit.Webhooks/Models/TeamParent.cs index 9f799de7..8e4c9846 100644 --- a/src/Octokit.Webhooks/Models/TeamParent.cs +++ b/src/Octokit.Webhooks/Models/TeamParent.cs @@ -13,7 +13,7 @@ public sealed record TeamParent public string Name { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/User.cs b/src/Octokit.Webhooks/Models/User.cs index d34eabf6..6a145418 100644 --- a/src/Octokit.Webhooks/Models/User.cs +++ b/src/Octokit.Webhooks/Models/User.cs @@ -10,7 +10,7 @@ public sealed record User public string Login { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("node_id")] public string NodeId { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/Workflow.cs b/src/Octokit.Webhooks/Models/Workflow.cs index 67bb0580..2dab8f24 100644 --- a/src/Octokit.Webhooks/Models/Workflow.cs +++ b/src/Octokit.Webhooks/Models/Workflow.cs @@ -16,7 +16,7 @@ public sealed record Workflow public string HtmlUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("name")] public string Name { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/WorkflowJobEvent/WorkflowJob.cs b/src/Octokit.Webhooks/Models/WorkflowJobEvent/WorkflowJob.cs index 05b37a4a..ea8d88e7 100644 --- a/src/Octokit.Webhooks/Models/WorkflowJobEvent/WorkflowJob.cs +++ b/src/Octokit.Webhooks/Models/WorkflowJobEvent/WorkflowJob.cs @@ -8,13 +8,13 @@ namespace Octokit.Webhooks.Models.WorkflowJobEvent public sealed record WorkflowJob { [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("run_id")] - public int RunId { get; init; } + public long RunId { get; init; } [JsonPropertyName("run_attempt")] - public int RunAttempt { get; init; } + public long RunAttempt { get; init; } [JsonPropertyName("run_url")] public string RunUrl { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/WorkflowJobEvent/WorkflowJobStep.cs b/src/Octokit.Webhooks/Models/WorkflowJobEvent/WorkflowJobStep.cs index 76a3bb94..0689dd95 100644 --- a/src/Octokit.Webhooks/Models/WorkflowJobEvent/WorkflowJobStep.cs +++ b/src/Octokit.Webhooks/Models/WorkflowJobEvent/WorkflowJobStep.cs @@ -16,7 +16,7 @@ public sealed record WorkflowJobStep public WorkflowJobStepConclusion Conclusion { get; init; } [JsonPropertyName("number")] - public int Number { get; init; } + public long Number { get; init; } [JsonPropertyName("started_at")] public string StartedAt { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/WorkflowPullRequest.cs b/src/Octokit.Webhooks/Models/WorkflowPullRequest.cs index d485869e..2941b25e 100644 --- a/src/Octokit.Webhooks/Models/WorkflowPullRequest.cs +++ b/src/Octokit.Webhooks/Models/WorkflowPullRequest.cs @@ -10,10 +10,10 @@ public sealed record WorkflowPullRequest public string Url { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("number")] - public int Number { get; init; } + public long Number { get; init; } [JsonPropertyName("head")] public WorkflowPullRequestHead Head { get; init; } = null!; diff --git a/src/Octokit.Webhooks/Models/WorkflowRun.cs b/src/Octokit.Webhooks/Models/WorkflowRun.cs index d462d767..94fa8a86 100644 --- a/src/Octokit.Webhooks/Models/WorkflowRun.cs +++ b/src/Octokit.Webhooks/Models/WorkflowRun.cs @@ -17,7 +17,7 @@ public sealed record WorkflowRun public string CheckSuiteUrl { get; init; } = null!; [JsonPropertyName("check_suite_id")] - public int CheckSuiteId { get; init; } + public long CheckSuiteId { get; init; } [JsonPropertyName("check_suite_node_id")] public string CheckSuiteNodeId { get; init; } = null!; @@ -47,7 +47,7 @@ public sealed record WorkflowRun public string HtmlUrl { get; init; } = null!; [JsonPropertyName("id")] - public int Id { get; init; } + public long Id { get; init; } [JsonPropertyName("jobs_url")] public string JobsUrl { get; init; } = null!; @@ -71,7 +71,7 @@ public sealed record WorkflowRun public string RerunUrl { get; init; } = null!; [JsonPropertyName("run_number")] - public int RunNumber { get; init; } + public long RunNumber { get; init; } [JsonPropertyName("status")] public WorkflowRunStatus Status { get; init; } @@ -83,7 +83,7 @@ public sealed record WorkflowRun public string Url { get; init; } = null!; [JsonPropertyName("workflow_id")] - public int WorkflowId { get; init; } + public long WorkflowId { get; init; } [JsonPropertyName("workflow_url")] public string WorkflowUrl { get; init; } = null!;