From 553822849190d847833a48bc4fa10ea1b4627988 Mon Sep 17 00:00:00 2001 From: Nils Andresen Date: Fri, 10 May 2024 20:39:14 +0200 Subject: [PATCH] (#139) issue Number is long, not int This was changed in Octokit 10.0.0. --- src/GitHubMilestoneCleaner.Tests/IssueGroupEngineTests.cs | 2 +- src/GitHubMilestoneCleaner/Commands/AutoCleanupCommand.cs | 2 +- src/GitHubMilestoneCleaner/Engines/IssueGroupEngine.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GitHubMilestoneCleaner.Tests/IssueGroupEngineTests.cs b/src/GitHubMilestoneCleaner.Tests/IssueGroupEngineTests.cs index 2b244d1..c418cdf 100644 --- a/src/GitHubMilestoneCleaner.Tests/IssueGroupEngineTests.cs +++ b/src/GitHubMilestoneCleaner.Tests/IssueGroupEngineTests.cs @@ -11,7 +11,7 @@ public class IssueGroupEngineTests public class MockIssueWrapper(string title, int number) : IssueGroupEngine.IIssueWrapper { public string Title { get; } = title; - public int Number { get; } = number; + public long Number { get; } = number; public Issue BackingIssue { get; } = new(); } diff --git a/src/GitHubMilestoneCleaner/Commands/AutoCleanupCommand.cs b/src/GitHubMilestoneCleaner/Commands/AutoCleanupCommand.cs index 6691f7d..7cebbd4 100644 --- a/src/GitHubMilestoneCleaner/Commands/AutoCleanupCommand.cs +++ b/src/GitHubMilestoneCleaner/Commands/AutoCleanupCommand.cs @@ -164,7 +164,7 @@ public IssueWrapper(Issue issue) } public string Title => BackingIssue.Title; - public int Number => BackingIssue.Number; + public long Number => BackingIssue.Number; public Issue BackingIssue { get; } } } \ No newline at end of file diff --git a/src/GitHubMilestoneCleaner/Engines/IssueGroupEngine.cs b/src/GitHubMilestoneCleaner/Engines/IssueGroupEngine.cs index e05f19e..03c0933 100644 --- a/src/GitHubMilestoneCleaner/Engines/IssueGroupEngine.cs +++ b/src/GitHubMilestoneCleaner/Engines/IssueGroupEngine.cs @@ -66,7 +66,7 @@ public record IssueGroup public interface IIssueWrapper { string Title { get; } - int Number { get; } + long Number { get; } Issue BackingIssue { get; } } }