Handle event ids greater than int32.maxvalue (#1940)

Fixes https://github.com/octokit/octokit.net/issues/1939
This commit is contained in:
Matt Richardson
2019-02-19 22:16:30 +11:00
committed by Ryan Gribble
parent 47c38bfd8e
commit 3147ddd694
+2 -2
View File
@@ -11,7 +11,7 @@ namespace Octokit
{
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 @@ namespace Octokit
/// <summary>
/// The id of the issue/pull request event.
/// </summary>
public int Id { get; protected set; }
public long Id { get; protected set; }
/// <summary>
/// GraphQL Node Id