diff --git a/src/ToolWindows/GHActionsToolWindow.xaml b/src/ToolWindows/GHActionsToolWindow.xaml
index 8f0c046..0533657 100644
--- a/src/ToolWindows/GHActionsToolWindow.xaml
+++ b/src/ToolWindows/GHActionsToolWindow.xaml
@@ -115,6 +115,11 @@
+
+
+
diff --git a/src/ToolWindows/GHActionsToolWindow.xaml.cs b/src/ToolWindows/GHActionsToolWindow.xaml.cs
index 44f1d31..425eac9 100644
--- a/src/ToolWindows/GHActionsToolWindow.xaml.cs
+++ b/src/ToolWindows/GHActionsToolWindow.xaml.cs
@@ -448,5 +448,21 @@ private void RunWorkflow_Click(object sender, RoutedEventArgs e)
}
}
}
+
+ private async void Secret_MouseDoubleClick(object sender, MouseButtonEventArgs e)
+ {
+ // get the items Tag
+ if (sender is TreeViewItem item && item.Header is not null)
+ {
+ string header = item.Header.ToString();
+ string secretName = header.Substring(0, header.IndexOf(" ("));
+
+ if (secretName.ToLowerInvariant() != resx.NO_REPO_SECRETS.ToLowerInvariant() && secretName.ToLowerInvariant() != resx.HEADER_REPO_SECRETS.ToLowerInvariant())
+ {
+ await UpsertRepositorySecret(secretName);
+ e.Handled = true;
+ }
+ }
+ }
}