From 48c3a0aaf781b3d3b199c4c9490b64fcbe0ac39e Mon Sep 17 00:00:00 2001 From: Tim Heuer Date: Mon, 31 Jul 2023 16:10:12 -0700 Subject: [PATCH] Added run timeline --- src/GitHubActionsVS.csproj | 5 ++++- src/Models/SimpleRun.cs | 5 +++-- src/ToolWindows/GHActionsToolWindow.xaml.cs | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/GitHubActionsVS.csproj b/src/GitHubActionsVS.csproj index a00b18d..f7491e8 100644 --- a/src/GitHubActionsVS.csproj +++ b/src/GitHubActionsVS.csproj @@ -147,6 +147,9 @@ 0.3.4 + + 2.14.1 + 0.27.2 @@ -163,7 +166,7 @@ all - 7.0.1 + 7.1.0 1.3.3 diff --git a/src/Models/SimpleRun.cs b/src/Models/SimpleRun.cs index 4b924c6..93c626d 100644 --- a/src/Models/SimpleRun.cs +++ b/src/Models/SimpleRun.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using Humanizer; +using System.Collections.Generic; namespace GitHubActionsVS.Models; public class SimpleRun : BaseWorkflowType @@ -6,5 +7,5 @@ public class SimpleRun : BaseWorkflowType public List Jobs { get; set; } public string RunNumber { get; set; } - public override string DisplayName => $"{Name} #{RunNumber}"; + public override string DisplayName => $"{Name} #{RunNumber} ({LogDate.Humanize()})"; } diff --git a/src/ToolWindows/GHActionsToolWindow.xaml.cs b/src/ToolWindows/GHActionsToolWindow.xaml.cs index 425eac9..e397dde 100644 --- a/src/ToolWindows/GHActionsToolWindow.xaml.cs +++ b/src/ToolWindows/GHActionsToolWindow.xaml.cs @@ -13,6 +13,7 @@ using System.Windows.Media; using MessageBox = Community.VisualStudio.Toolkit.MessageBox; using resx = GitHubActionsVS.Resources.UIStrings; +using Humanizer; namespace GitHubActionsVS;