Skip to content
Merged
Show file tree
Hide file tree
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
21 changes: 17 additions & 4 deletions PatchPanda.Units/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ public static ComposeStack GetTestStack(
string version,
string? githubNewVersion,
string targetImage
) =>
GetTestStack(
version,
githubNewVersion,
targetImage,
VersionHelper.BuildRegexFromVersion(version),
githubNewVersion is null ? null : VersionHelper.BuildRegexFromVersion(githubNewVersion)
);

public static ComposeStack GetTestStack(
string version,
string? githubNewVersion,
string targetImage,
string regex,
string? githubVersionRegex
)
{
var stack = new ComposeStack
Expand All @@ -30,10 +45,8 @@ string targetImage
Id = 1,
Name = "TestApp",
IsSecondary = false,
Regex = VersionHelper.BuildRegexFromVersion(version),
GitHubVersionRegex = githubNewVersion is null
? null
: VersionHelper.BuildRegexFromVersion(githubNewVersion),
Regex = regex,
GitHubVersionRegex = githubVersionRegex,
Version = version,
TargetImage = targetImage,
StackId = 1,
Expand Down
Loading
Loading