From 3147ddd6941bc45fbe5fb2a2a958eb61e10edf4a Mon Sep 17 00:00:00 2001 From: Matt Richardson Date: Tue, 19 Feb 2019 22:16:30 +1100 Subject: [PATCH] Handle event ids greater than int32.maxvalue (#1940) Fixes https://github.com/octokit/octokit.net/issues/1939 --- Octokit/Models/Response/EventInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Octokit/Models/Response/EventInfo.cs b/Octokit/Models/Response/EventInfo.cs index 3e5c31d91b..c4b066d9ab 100644 --- a/Octokit/Models/Response/EventInfo.cs +++ b/Octokit/Models/Response/EventInfo.cs @@ -11,7 +11,7 @@ public class EventInfo { public EventInfo() { } - public EventInfo(int id, string nodeId, string url, User actor, User assignee, Label label, EventInfoState @event, string commitId, DateTimeOffset createdAt) + public EventInfo(long id, string nodeId, string url, User actor, User assignee, Label label, EventInfoState @event, string commitId, DateTimeOffset createdAt) { Id = id; NodeId = nodeId; @@ -27,7 +27,7 @@ public EventInfo(int id, string nodeId, string url, User actor, User assignee, L /// /// The id of the issue/pull request event. /// - public int Id { get; protected set; } + public long Id { get; protected set; } /// /// GraphQL Node Id