mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
handle int32 overflow with IssueTimeline API (#2092)
This commit is contained in:
@@ -191,6 +191,13 @@ namespace Octokit.Tests.Integration.Clients
|
||||
Assert.Equal(anotherNewIssue.Id, timelineEventInfos[0].Source.Issue.Id);
|
||||
}
|
||||
|
||||
[IntegrationTest]
|
||||
public async Task CanDeserializeIssueTimelineWhereIdPreviouslyOverflows()
|
||||
{
|
||||
var timelineEvents = await _issueTimelineClient.GetAllForIssue("octokit", "octokit.net", 1595);
|
||||
Assert.NotEmpty(timelineEvents);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_context.Dispose();
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Octokit
|
||||
{
|
||||
public TimelineEventInfo() { }
|
||||
|
||||
public TimelineEventInfo(int id, string nodeId, string url, User actor, string commitId, EventInfoState @event, DateTimeOffset createdAt, Label label, User assignee, Milestone milestone, SourceInfo source, RenameInfo rename)
|
||||
public TimelineEventInfo(long id, string nodeId, string url, User actor, string commitId, EventInfoState @event, DateTimeOffset createdAt, Label label, User assignee, Milestone milestone, SourceInfo source, RenameInfo rename)
|
||||
{
|
||||
Id = id;
|
||||
NodeId = nodeId;
|
||||
@@ -25,7 +25,7 @@ namespace Octokit
|
||||
Rename = rename;
|
||||
}
|
||||
|
||||
public int Id { get; protected set; }
|
||||
public long Id { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// GraphQL Node Id
|
||||
|
||||
Reference in New Issue
Block a user