Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spacedock transformer: remove version string -> release_status parsing #4294

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions Netkan/Transformers/SpacedockTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ private Metadata TransformOne(Metadata metadata, JObject json, SpacedockMod sdMo
var sdLicense => sdLicense,
});

if (ver?.ToLower() is string lowerV
&& preReleaseSubstrings.Any(substr => lowerV.Contains(substr)))
{
json.SafeAdd("release_status", "testing");
}

// Make sure resources exist.
if (json["resources"] == null)
{
Expand Down Expand Up @@ -196,10 +190,5 @@ private static void TryAddResourceURL(string identifier, JObject? resources, str
private static readonly Regex githubUrlPathPattern =
new Regex("^/(?<owner>[^/]+)/(?<repo>[^/]+)",
RegexOptions.Compiled);

private static readonly string[] preReleaseSubstrings = new string[]
{
"pre", "alpha", "beta",
};
}
}
Loading