Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
535 B

using Octokit;
using Refit;
namespace StabilityMatrix.Core.Helper.Cache;
public interface IGithubApiCache
{
Task<Release> GetLatestRelease(string username, string repository);
Task<IOrderedEnumerable<Release>> GetAllReleases(string username, string repository);
Task<IReadOnlyList<Branch>> GetAllBranches(string username, string repository);
Task<IReadOnlyList<GitHubCommit>?> GetAllCommits(string username, string repository, string branch, int page = 1,
[AliasAs("per_page")] int perPage = 10);
}