Browse Source

Don't offer prereleases

pull/5/head
JT 1 year ago
parent
commit
100576bd02
  1. 8
      StabilityMatrix/Models/Packages/A3WebUI.cs

8
StabilityMatrix/Models/Packages/A3WebUI.cs

@ -117,10 +117,11 @@ public class A3WebUI : BaseGitPackage
if (isReleaseMode)
{
var allReleases = await GetAllReleases();
return allReleases.Select(r => new PackageVersion {TagName = r.TagName!, ReleaseNotesMarkdown = r.Body});
return allReleases.Where(r => r.Prerelease == false).Select(r => new PackageVersion
{TagName = r.TagName!, ReleaseNotesMarkdown = r.Body});
}
else // branch mode
{
// else, branch mode
var allBranches = await GetAllBranches();
return allBranches.Select(b => new PackageVersion
{
@ -128,7 +129,6 @@ public class A3WebUI : BaseGitPackage
ReleaseNotesMarkdown = string.Empty
});
}
}
public override async Task InstallPackage(IProgress<ProgressReport>? progress = null)
{

Loading…
Cancel
Save