@@ -12,17 +12,17 @@ export class DecorationProvider implements FileDecorationProvider {
|
||||
if (params.get('status') === Status.Enabled) {
|
||||
return {
|
||||
badge: '✅',
|
||||
color: new ThemeColor('GitHubLocalActions.enabled')
|
||||
color: new ThemeColor('GitHubLocalActions.green')
|
||||
};
|
||||
} else if (params.get('status') === Status.Warning) {
|
||||
return {
|
||||
badge: '⚠️',
|
||||
color: new ThemeColor('GitHubLocalActions.warning')
|
||||
color: new ThemeColor('GitHubLocalActions.yellow')
|
||||
};
|
||||
} else if (params.get('status') === Status.Disabled) {
|
||||
return {
|
||||
badge: '❌',
|
||||
color: new ThemeColor('GitHubLocalActions.disabled')
|
||||
color: new ThemeColor('GitHubLocalActions.red')
|
||||
};
|
||||
}
|
||||
} else if (uri.scheme === WorkflowTreeItem.contextValue) {
|
||||
@@ -30,7 +30,7 @@ export class DecorationProvider implements FileDecorationProvider {
|
||||
if (params.get('error')) {
|
||||
return {
|
||||
badge: '❌',
|
||||
color: new ThemeColor('GitHubLocalActions.disabled')
|
||||
color: new ThemeColor('GitHubLocalActions.red')
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CancellationToken, commands, EventEmitter, ExtensionContext, TreeDataProvider, TreeItem, window, workspace } from "vscode";
|
||||
import { Act } from "../../act";
|
||||
import { Act, EventTrigger } from "../../act";
|
||||
import { WorkflowManager } from "../../workflowManager";
|
||||
import { GithubLocalActionsTreeItem } from "../githubLocalActionsTreeItem";
|
||||
import WorkflowTreeItem from "./workflow";
|
||||
@@ -14,6 +14,16 @@ export default class WorkflowsTreeDataProvider implements TreeDataProvider<Githu
|
||||
commands.registerCommand('githubLocalActions.runAllWorkflows', async () => {
|
||||
await Act.runAllWorkflows();
|
||||
}),
|
||||
commands.registerCommand('githubLocalActions.runEvent', async () => {
|
||||
const event = await window.showQuickPick(Object.values(EventTrigger), {
|
||||
title: 'Select the event to run',
|
||||
placeHolder: 'Event'
|
||||
});
|
||||
|
||||
if(event) {
|
||||
await Act.runEvent(event as EventTrigger);
|
||||
}
|
||||
}),
|
||||
commands.registerCommand('githubLocalActions.refreshWorkflows', async () => {
|
||||
this.refresh();
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user