Skip to content

Commit

Permalink
Bump csharpier from 0.29.2 to 0.30.3
Browse files Browse the repository at this point in the history
  • Loading branch information
drakon64 committed Dec 18, 2024
1 parent a7cc771 commit 2428ba1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.29.2",
"version": "0.30.3",
"commands": [
"dotnet-csharpier"
],
Expand Down
24 changes: 13 additions & 11 deletions Amaurot.Processor/Clients/GitHubClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,23 @@ private string GenerateJwtSecurityToken()
return new JwtSecurityTokenHandler().WriteToken(jwt);
}

private static readonly HttpClient HttpClient =
new()
private static readonly HttpClient HttpClient = new()
{
DefaultRequestHeaders =
{
DefaultRequestHeaders =
{
{ "User-Agent", "Amaurot/0.0.1" },
{ "Accept", "application/vnd.github+json" },
{ "X-GitHub-Api-Version", "2022-11-28" },
},
};
{ "User-Agent", "Amaurot/0.0.1" },
{ "Accept", "application/vnd.github+json" },
{ "X-GitHub-Api-Version", "2022-11-28" },
},
};

private const string GitHubApiUri = "https://api.github.com/";

private InstallationAccessToken _githubInstallationAccessToken =
new() { Token = "", ExpiresAt = DateTime.Now };
private InstallationAccessToken _githubInstallationAccessToken = new()
{
Token = "",
ExpiresAt = DateTime.Now,
};

private async Task<string> GetGitHubInstallationAccessToken(long installationId)
{
Expand Down

0 comments on commit 2428ba1

Please sign in to comment.