Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit f4b1918

Browse files
authored
Merge pull request #124 from ghost/patch-2
Add open in browser icon
2 parents b27105d + 0e38d6d commit f4b1918

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@
166166
"category": "GitHub Actions",
167167
"title": "Unpin workflow",
168168
"icon": "$(pinned)"
169+
},
170+
{
171+
"command": "github-actions.workflow.run.open",
172+
"title": "Open in browser",
173+
"icon": "$(globe)"
169174
}
170175
],
171176
"views": {
@@ -277,6 +282,11 @@
277282
"command": "github-actions.settings.secret.delete",
278283
"when": "viewItem == 'secret'",
279284
"group": "inline@2"
285+
},
286+
{
287+
"command": "github-actions.workflow.run.open",
288+
"when": "viewItem =~ /run/",
289+
"group": "inline"
280290
}
281291
],
282292
"commandPalette": [

src/treeViews/workflows/workflowRunNode.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ export class WorkflowRunNode extends vscode.TreeItem {
3030
this.contextValue += "completed";
3131
}
3232

33-
this.command = {
34-
title: "Open run",
35-
command: "github-actions.workflow.run.open",
36-
arguments: [this],
37-
};
38-
3933
this.iconPath = getIconForWorkflowRun(this.run);
4034
this.tooltip = `${this.run.status} ${this.run.conclusion || ""}`;
4135
}

0 commit comments

Comments
 (0)