Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Remove inviter hack #413

Merged
merged 2 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ private async Task GenerateRepositories(
{
await repositoryManager.AddAdminPermission(organizationName, newRepositoryName, username);
}
catch (Exception e) when (e.Message == "Invalid Status Code returned. Expected a 204 or a 404")
{
_logger.LogWarning($"Octokit return wrong error code for {username}.");
}
catch (Exception e)
{
_logger.LogError(e, $"Failed to add user {username} as repo admin.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageReference Include="GitHubJwt" Version="0.0.5" />
<PackageReference Include="Kysect.GithubUtils" Version="1.0.12" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
<PackageReference Include="Octokit" Version="2.0.1" />
<PackageReference Include="Octokit" Version="3.0.0" />
<PackageReference Include="Octokit.Webhooks.AspNetCore" Version="1.2.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.2" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
Expand Down