🔖 Change render for version with alpha postfix.

This commit is contained in:
Kolosov Alexandr 2024-01-29 13:08:00 +05:00
parent ee490fb84e
commit 5514c6bd7a
3 changed files with 7 additions and 10 deletions

View File

@ -118,7 +118,7 @@ public class DependencyDashboard : IControl<Project>
{ {
var token = Environment.GetEnvironmentVariable("TLD_GITLAB_PAT"); var token = Environment.GetEnvironmentVariable("TLD_GITLAB_PAT");
return $"{sourceDto.Repo}/api/v4/projects/{sourceDto.ProjectId}/repository/files/package.json/raw?" + return $"{sourceDto.Repo}/api/v4/projects/{sourceDto.ProjectId}/repository/files/package.json/raw?" +
$"private_token={token}&ref=master"; $"private_token={token}&ref=dev";
} }
private static string GetConventionVersion(DependencyDto dependencyDto) private static string GetConventionVersion(DependencyDto dependencyDto)

View File

@ -23,8 +23,9 @@
  dependencies    dependencies 
┌──────────────────────────────────────────────────────────────────────── Planned release ─────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────── Planned release ─────────────────────────────────────────────────────────────────┐
│ 2024-12-31 4/11 xfirm [############# ] //green - done, blue - test, pink review/build, orange WIP │ 2024-12-31 4/11 xfirm [############# ] //green - done, blue - test, pink review/build, orange WIP
│ 2024-12-31 xfirm 4/11 [###############.......] //green - done, blue - test, pink review/build │ 4/11 xfirm [###############.......] //green - done, blue - test, pink review/build
│ 2024-12-31 4/11 xfirm [###############.......] //green - done, blue - test, pink review/build
│ 2024-12-31 xfirm 4/11 [############..........] //green - done, blue - test, pink review/build │ 2024-12-31 xfirm 4/11 [############..........] //green - done, blue - test, pink review/build
│ 2024-12-31 xfirm 4/11 [############..........] //green - done, blue - test, pink review/build │ 2024-12-31 xfirm 4/11 [############..........] //green - done, blue - test, pink review/build
│ 2024-12-31 xfirm 4/11 [############..........] //green - done, blue - test, pink review/build │ 2024-12-31 xfirm 4/11 [############..........] //green - done, blue - test, pink review/build
@ -32,9 +33,9 @@
│ 2024-12-31 xfirm 4/11 [############..........] //green - done, blue - test, pink review/build │ 2024-12-31 xfirm 4/11 [############..........] //green - done, blue - test, pink review/build
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────── checkperson-site ────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────── checkperson-site ────────────────────────────────────────────────────────────────┐
│ 󰨑 󰦖  ELK-3628 Create new menu. 󰵮 Petrov A. 󰙨 Ivanov I. │ 󰨑 󰦖  ELK-3628 Create new menu.  Anna P. 󰵮 Petrov A. 󰙨 Ivanov I.
│ 󰨑 󰦕  XF-12 Change input hover. 󰵮 Ivanov I. 󰙨 Petrov A., Petrov B. │ 󰨑 󰦕  XF-12 Change input hover.  Alex K. 󰵮 Ivanov I. 󰙨 Petrov A., Petrov B.
│ 󰨑 󱞇  ELK-3628 Crete new project with menu, profile, issues and # 󰵮 Ivanov I. 󰙨 Petrov A., Petrov B. │ 󰨑 󱞇  ELK-3628 Crete new project with menu, profile, issues and #  Anna P. 󰵮 Ivanov I. 󰙨 Petrov A., Petrov B.
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────── Actual releases 2023 ─────────────────────────────────────────────────────────┐ ┌─────────────────────────────────────────────────────────────────────────── Actual releases 2023 ─────────────────────────────────────────────────────────┐
@ -49,5 +50,3 @@

View File

@ -33,8 +33,6 @@ public static class Extensions
public static Version? ToVersion(this string textVersion) public static Version? ToVersion(this string textVersion)
{ {
var version = textVersion.Replace("^", "").Replace("~", "").Split("."); var version = textVersion.Replace("^", "").Replace("~", "").Split(".");
if (version.Length != 3)
return null;
var major = Convert.ToInt32(version[0]); var major = Convert.ToInt32(version[0]);
var minor = Convert.ToInt32(version[1]); var minor = Convert.ToInt32(version[1]);
var patch = Convert.ToInt32(version[2].Split('-')[0]); var patch = Convert.ToInt32(version[2].Split('-')[0]);