@@ -84,7 +84,7 @@ public async Task GetRepoInfoAsync()
84
84
private void ClearTreeViews ( )
85
85
{
86
86
tvSecrets . Items . Clear ( ) ;
87
- tvWorkflows . Items . Clear ( ) ;
87
+ // tvWorkflows.Items.Clear();
88
88
tvCurrentBranch . Items . Clear ( ) ;
89
89
tvEnvironments . Items . Clear ( ) ;
90
90
}
@@ -110,16 +110,16 @@ private async Task LoadDataAsync()
110
110
}
111
111
112
112
// get workflows
113
- var workflows = await client . Actions ? . Workflows ? . List ( _repoInfo . RepoOwner , _repoInfo . RepoName ) ;
114
- foreach ( var workflow in workflows . Workflows )
115
- {
116
- var item = new TreeViewItem
117
- {
118
- Header = workflow . Name ,
119
- Tag = workflow
120
- } ;
121
- tvWorkflows . Items . Add ( item ) ;
122
- }
113
+ // var workflows = await client.Actions?.Workflows?.List(_repoInfo.RepoOwner, _repoInfo.RepoName);
114
+ // foreach (var workflow in workflows.Workflows)
115
+ // {
116
+ // var item = new TreeViewItem
117
+ // {
118
+ // Header = workflow.Name,
119
+ // Tag = workflow
120
+ // };
121
+ // tvWorkflows.Items.Add(item);
122
+ // }
123
123
124
124
// get current branch
125
125
var runs = await client . Actions ? . Workflows ? . Runs ? . List ( _repoInfo . RepoOwner , _repoInfo . RepoName , new WorkflowRunsRequest ( ) { Branch = _repoInfo . CurrentBranch } , new ApiOptions ( ) { PageCount = 2 , PageSize = 10 } ) ;
@@ -147,8 +147,9 @@ private async Task LoadDataAsync()
147
147
var stepItem = new TreeViewItem
148
148
{
149
149
Header = CreateEmojiContent ( $ "{ GetConclusionIndicator ( step . Conclusion . Value . StringValue ) } : { step . Name } ") ,
150
- Tag = step
150
+ Tag = $ " { job . HtmlUrl } # step: { step . Number . ToString ( ) } :1" //https://github.com/timheuer/workflow-playground/actions/runs/5548963145/jobs/10132505381#step:2:7
151
151
} ;
152
+ stepItem . MouseDoubleClick += JobItem_MouseDoubleClick ;
152
153
jobItem . Items . Add ( stepItem ) ;
153
154
}
154
155
@@ -193,7 +194,11 @@ private static GitHubClient GetGitHubClient()
193
194
194
195
private void JobItem_MouseDoubleClick ( object sender , System . Windows . Input . MouseButtonEventArgs e )
195
196
{
196
- throw new NotImplementedException ( ) ;
197
+ // get the items Tag
198
+ if ( sender is TreeViewItem item && item . Tag is string url )
199
+ {
200
+ Process . Start ( url ) ;
201
+ }
197
202
}
198
203
}
199
204
0 commit comments