diff --git a/src/ChangeLog.Test/Integrations/GitHub/_Helpers/GitHubClientMock.cs b/src/ChangeLog.Test/Integrations/GitHub/_Helpers/GitHubClientMock.cs index de946e68..1b4dedbc 100644 --- a/src/ChangeLog.Test/Integrations/GitHub/_Helpers/GitHubClientMock.cs +++ b/src/ChangeLog.Test/Integrations/GitHub/_Helpers/GitHubClientMock.cs @@ -30,21 +30,21 @@ public RepositoriesClientMock() public Mock PullRequest { get; } = new(MockBehavior.Strict); - public Mock Miscellaneous { get; } = new(MockBehavior.Strict); + public Mock RateLimit { get; } = new(MockBehavior.Strict); public RepositoriesClientMock Repository { get; } = new(); public GitHubClientMock() { - Miscellaneous + RateLimit .Setup(x => x.GetRateLimits()) .ReturnsAsync(new MiscellaneousRateLimit(new ResourceRateLimit(), new RateLimit())); m_Mock.Setup(x => x.Repository).Returns(Repository.Object); m_Mock.Setup(x => x.Issue).Returns(Issue.Object); m_Mock.Setup(x => x.PullRequest).Returns(PullRequest.Object); - m_Mock.Setup(x => x.Miscellaneous).Returns(Miscellaneous.Object); + m_Mock.Setup(x => x.RateLimit).Returns(RateLimit.Object); } } } diff --git a/src/ChangeLog.Test/packages.lock.json b/src/ChangeLog.Test/packages.lock.json index a6e88e16..132dfa92 100644 --- a/src/ChangeLog.Test/packages.lock.json +++ b/src/ChangeLog.Test/packages.lock.json @@ -491,8 +491,8 @@ }, "Octokit": { "type": "Transitive", - "resolved": "3.0.0", - "contentHash": "IM7sDD1DSu+6jiFKcRyB8Tb0CZlPJ7nnBdPnhCXEToEZWJAlr/01PVk/UTRiCutF62Dni3n2gZWJrusLytxzpw==" + "resolved": "3.0.1", + "contentHash": "YMlCfdajpmU+Ar+3SH0MThU1OCi0h9ovtCJTEQEGRJZyLdiL/DCFLhhNr7jsIFPANFogEXEAy1iZLfOC3UxZow==" }, "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { "type": "Transitive", @@ -1519,7 +1519,7 @@ "Microsoft.Extensions.Configuration.Json": "6.0.0", "Microsoft.Extensions.Logging": "6.0.0", "NuGet.Versioning": "6.3.0", - "Octokit": "3.0.0", + "Octokit": "3.0.1", "Scriban": "5.5.0", "Zio": "0.15.0" } @@ -2010,8 +2010,8 @@ }, "Octokit": { "type": "Transitive", - "resolved": "3.0.0", - "contentHash": "IM7sDD1DSu+6jiFKcRyB8Tb0CZlPJ7nnBdPnhCXEToEZWJAlr/01PVk/UTRiCutF62Dni3n2gZWJrusLytxzpw==" + "resolved": "3.0.1", + "contentHash": "YMlCfdajpmU+Ar+3SH0MThU1OCi0h9ovtCJTEQEGRJZyLdiL/DCFLhhNr7jsIFPANFogEXEAy1iZLfOC3UxZow==" }, "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { "type": "Transitive", @@ -3030,7 +3030,7 @@ "Microsoft.Extensions.Configuration.Json": "6.0.0", "Microsoft.Extensions.Logging": "6.0.0", "NuGet.Versioning": "6.3.0", - "Octokit": "3.0.0", + "Octokit": "3.0.1", "Scriban": "5.5.0", "Zio": "0.15.0" } @@ -3517,8 +3517,8 @@ }, "Octokit": { "type": "Transitive", - "resolved": "3.0.0", - "contentHash": "IM7sDD1DSu+6jiFKcRyB8Tb0CZlPJ7nnBdPnhCXEToEZWJAlr/01PVk/UTRiCutF62Dni3n2gZWJrusLytxzpw==" + "resolved": "3.0.1", + "contentHash": "YMlCfdajpmU+Ar+3SH0MThU1OCi0h9ovtCJTEQEGRJZyLdiL/DCFLhhNr7jsIFPANFogEXEAy1iZLfOC3UxZow==" }, "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { "type": "Transitive", @@ -4533,7 +4533,7 @@ "Microsoft.Extensions.Configuration.Json": "6.0.0", "Microsoft.Extensions.Logging": "6.0.0", "NuGet.Versioning": "6.3.0", - "Octokit": "3.0.0", + "Octokit": "3.0.1", "Scriban": "5.5.0", "Zio": "0.15.0" } diff --git a/src/ChangeLog/Grynwald.ChangeLog.csproj b/src/ChangeLog/Grynwald.ChangeLog.csproj index 4c5e8b8d..91726567 100644 --- a/src/ChangeLog/Grynwald.ChangeLog.csproj +++ b/src/ChangeLog/Grynwald.ChangeLog.csproj @@ -46,7 +46,7 @@ - + diff --git a/src/ChangeLog/Integrations/GitHub/GitHubLinkTask.cs b/src/ChangeLog/Integrations/GitHub/GitHubLinkTask.cs index 3131bb4b..893bfa88 100644 --- a/src/ChangeLog/Integrations/GitHub/GitHubLinkTask.cs +++ b/src/ChangeLog/Integrations/GitHub/GitHubLinkTask.cs @@ -57,7 +57,7 @@ public async Task RunAsync(ApplicationChangeLog changeLog) var githubClient = m_GitHubClientFactory.CreateClient(projectInfo.Host); - var rateLimit = await githubClient.Miscellaneous.GetRateLimits(); + var rateLimit = await githubClient.RateLimit.GetRateLimits(); m_Logger.LogDebug($"GitHub rate limit: {rateLimit.Rate.Remaining} requests of {rateLimit.Rate.Limit} remaining"); diff --git a/src/ChangeLog/packages.lock.json b/src/ChangeLog/packages.lock.json index a879f9b2..2a95ddd9 100644 --- a/src/ChangeLog/packages.lock.json +++ b/src/ChangeLog/packages.lock.json @@ -150,9 +150,9 @@ }, "Octokit": { "type": "Direct", - "requested": "[3.0.0, )", - "resolved": "3.0.0", - "contentHash": "IM7sDD1DSu+6jiFKcRyB8Tb0CZlPJ7nnBdPnhCXEToEZWJAlr/01PVk/UTRiCutF62Dni3n2gZWJrusLytxzpw==" + "requested": "[3.0.1, )", + "resolved": "3.0.1", + "contentHash": "YMlCfdajpmU+Ar+3SH0MThU1OCi0h9ovtCJTEQEGRJZyLdiL/DCFLhhNr7jsIFPANFogEXEAy1iZLfOC3UxZow==" }, "Scriban": { "type": "Direct", @@ -714,9 +714,9 @@ }, "Octokit": { "type": "Direct", - "requested": "[3.0.0, )", - "resolved": "3.0.0", - "contentHash": "IM7sDD1DSu+6jiFKcRyB8Tb0CZlPJ7nnBdPnhCXEToEZWJAlr/01PVk/UTRiCutF62Dni3n2gZWJrusLytxzpw==" + "requested": "[3.0.1, )", + "resolved": "3.0.1", + "contentHash": "YMlCfdajpmU+Ar+3SH0MThU1OCi0h9ovtCJTEQEGRJZyLdiL/DCFLhhNr7jsIFPANFogEXEAy1iZLfOC3UxZow==" }, "Scriban": { "type": "Direct", @@ -1263,9 +1263,9 @@ }, "Octokit": { "type": "Direct", - "requested": "[3.0.0, )", - "resolved": "3.0.0", - "contentHash": "IM7sDD1DSu+6jiFKcRyB8Tb0CZlPJ7nnBdPnhCXEToEZWJAlr/01PVk/UTRiCutF62Dni3n2gZWJrusLytxzpw==" + "requested": "[3.0.1, )", + "resolved": "3.0.1", + "contentHash": "YMlCfdajpmU+Ar+3SH0MThU1OCi0h9ovtCJTEQEGRJZyLdiL/DCFLhhNr7jsIFPANFogEXEAy1iZLfOC3UxZow==" }, "Scriban": { "type": "Direct", diff --git a/utilities/docs/packages.lock.json b/utilities/docs/packages.lock.json index e5ab2520..c30d5212 100644 --- a/utilities/docs/packages.lock.json +++ b/utilities/docs/packages.lock.json @@ -245,8 +245,8 @@ }, "Octokit": { "type": "Transitive", - "resolved": "3.0.0", - "contentHash": "IM7sDD1DSu+6jiFKcRyB8Tb0CZlPJ7nnBdPnhCXEToEZWJAlr/01PVk/UTRiCutF62Dni3n2gZWJrusLytxzpw==" + "resolved": "3.0.1", + "contentHash": "YMlCfdajpmU+Ar+3SH0MThU1OCi0h9ovtCJTEQEGRJZyLdiL/DCFLhhNr7jsIFPANFogEXEAy1iZLfOC3UxZow==" }, "Scriban": { "type": "Transitive", @@ -310,7 +310,7 @@ "Microsoft.Extensions.Configuration.Json": "6.0.0", "Microsoft.Extensions.Logging": "6.0.0", "NuGet.Versioning": "6.3.0", - "Octokit": "3.0.0", + "Octokit": "3.0.1", "Scriban": "5.5.0", "Zio": "0.15.0" } diff --git a/utilities/schema/packages.lock.json b/utilities/schema/packages.lock.json index c78ce433..ee93008a 100644 --- a/utilities/schema/packages.lock.json +++ b/utilities/schema/packages.lock.json @@ -371,8 +371,8 @@ }, "Octokit": { "type": "Transitive", - "resolved": "3.0.0", - "contentHash": "IM7sDD1DSu+6jiFKcRyB8Tb0CZlPJ7nnBdPnhCXEToEZWJAlr/01PVk/UTRiCutF62Dni3n2gZWJrusLytxzpw==" + "resolved": "3.0.1", + "contentHash": "YMlCfdajpmU+Ar+3SH0MThU1OCi0h9ovtCJTEQEGRJZyLdiL/DCFLhhNr7jsIFPANFogEXEAy1iZLfOC3UxZow==" }, "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { "type": "Transitive", @@ -1301,7 +1301,7 @@ "Microsoft.Extensions.Configuration.Json": "6.0.0", "Microsoft.Extensions.Logging": "6.0.0", "NuGet.Versioning": "6.3.0", - "Octokit": "3.0.0", + "Octokit": "3.0.1", "Scriban": "5.5.0", "Zio": "0.15.0" }