Skip to content

Commit

Permalink
deps: Update dependency Octokit to version 3.0.1
Browse files Browse the repository at this point in the history
Updates-dependency: Octokit
Updates-dependency-from-version: 3.0.0
Updates-dependency-to-version: 3.0.1
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <[email protected]>
Co-authored-by: Andreas Grünwald <[email protected]>
Pull-Request: #394
  • Loading branch information
3 people authored Oct 9, 2022
1 parent a17f0c2 commit b0d5f4f
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ public RepositoriesClientMock()

public Mock<IPullRequestsClient> PullRequest { get; } = new(MockBehavior.Strict);

public Mock<IMiscellaneousClient> Miscellaneous { get; } = new(MockBehavior.Strict);
public Mock<IRateLimitClient> 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);
}
}
}
18 changes: 9 additions & 9 deletions src/ChangeLog.Test/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion src/ChangeLog/Grynwald.ChangeLog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
<PackageReference Include="NuGet.Versioning" Version="6.3.0" />
<PackageReference Include="Octokit" Version="3.0.0" />
<PackageReference Include="Octokit" Version="3.0.1" />
<PackageReference Include="Autofac" Version="6.4.0" />
<PackageReference Include="Scriban" Version="5.5.0" />
<PackageReference Include="Zio" Version="0.15.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/ChangeLog/Integrations/GitHub/GitHubLinkTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public async Task<ChangeLogTaskResult> 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");


Expand Down
18 changes: 9 additions & 9 deletions src/ChangeLog/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions utilities/docs/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
Expand Down
6 changes: 3 additions & 3 deletions utilities/schema/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
Expand Down

0 comments on commit b0d5f4f

Please sign in to comment.