feat: add GitHub release API client and response DTOs
This commit is contained in:
1 parent
ae8680d275
commit
9c4fd7e624
4 files changed
+265
No files matched your search
@@ -11,5 +11,14 @@ var repositoryConfig = await RepoConfigLoader.LoadConfigAsync(
|
||||
config.RepositoryConfigFilePath);
|
||||
builder.Services.AddSingleton(repositoryConfig);
|
||||
|
||||
builder.Services.AddSingleton<GithubService>();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
using var scope = app.Services.CreateScope();
|
||||
|
||||
await scope.ServiceProvider
|
||||
.GetRequiredService<GithubService>()
|
||||
.FetchRepoReleasesAsync("SagerNet","sing-box");
|
||||
|
||||
await app.RunAsync();
|
||||
Reference in new issue
Block a user