feat: refactor HTTP client setup for Github and Forgejo services

- Centralized HTTP client configuration for `GithubService` and `ForgejoService` using `AddHttpClient`.
- Enhanced maintainability by moving Forgejo token and base URL setup into DI-configured HTTP clients.
- Fixed `forgejoInstance` validation logic and adjusted release selection to prioritize the first non-prerelease.
This commit is contained in:
mahdium committed 2026-11-04 16:55:58 +03:30
1 parent 7ac8a5af62
commit 3b644de2d5
5 files changed
+20 -15

No files matched your search

+1
View File
@@ -13,6 +13,7 @@
<ItemGroup>
<PackageReference Include="DotNetEnv" Version="3.2.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.14" />
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.14" />
<PackageReference Include="RStein.TOML" Version="1.0.0" />
</ItemGroup>