LANCommander/LANCommander.Server.Services/Abstractions/IGitHubService.cs
Pat Hartl add770b227 Refactor Settings
Settings for the server are now combined with the settings from the SDK. This introduces a large breaking change and a migration should be created. This refactor utilizes .NET Configuration and the Options pattern. This will allow for the overriding of any setting using envionment variables. It also means that Settings.yml can be used to override any .NET configuration. A SettingsProvider implementation was created, and any updating of settings was changed from SettingsService.SaveSettings() to SettingsProvider.Update(s => { ... })
2025-11-16 12:31:25 -06:00

16 lines
No EOL
603 B
C#

using LANCommander.Server.Services.Models;
using LANCommander.Server.Settings.Enums;
using Octokit;
using Semver;
namespace LANCommander.Server.Services.Abstractions;
public interface IGitHubService
{
Task<SemVersion> GetLatestVersionAsync(ReleaseChannel releaseChannel);
Task<Release?> GetReleaseAsync(SemVersion version);
Task<Release?> GetReleaseAsync(string tag);
Task<IEnumerable<Release>> GetReleasesAsync(int count);
Task<IEnumerable<Artifact>> GetNightlyArtifactsAsync(string versionOverride = null);
Task<IEnumerable<Artifact>> GetWorkflowArtifactsAsync(long runId);
}