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

Commit 8d0acf1

Browse files
committed
Sort imports & add types
1 parent 2904c54 commit 8d0acf1

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/commands/cancelWorkflowRun.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function registerCancelWorkflowRun(context: vscode.ExtensionContext) {
2121
repo: gitHubContext.name,
2222
run_id: run.id,
2323
});
24-
} catch (e) {
24+
} catch (e: any) {
2525
vscode.window.showErrorMessage(
2626
`Could not cancel workflow: '${e.message}'`
2727
);

src/commands/rerunWorkflowRun.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function registerReRunWorkflowRun(context: vscode.ExtensionContext) {
2222
repo: gitHubContext.name,
2323
run_id: run.id,
2424
});
25-
} catch (e) {
25+
} catch (e: any) {
2626
vscode.window.showErrorMessage(
2727
`Could not rerun workflow: '${e.message}'`
2828
);

src/commands/secrets/addSecret.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function registerAddSecret(context: vscode.ExtensionContext) {
4343
key_id: key_id,
4444
encrypted_value: encodeSecret(key, value),
4545
});
46-
} catch (e) {
46+
} catch (e: any) {
4747
vscode.window.showErrorMessage(e.message);
4848
}
4949
}

src/git/repository.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import * as vscode from "vscode";
22

3-
import { API, GitExtension, RefType, RepositoryState } from "../typings/git";
43
import { logDebug, logError } from "../log";
4+
import { API, GitExtension, RefType, RepositoryState } from "../typings/git";
55

66
import { Octokit } from "@octokit/rest";
7-
import { Protocol } from "../external/protocol";
87
import { getClient } from "../api/api";
98
import { getSession } from "../auth/auth";
109
import { getRemoteName } from "../configuration/configuration";
10+
import { Protocol } from "../external/protocol";
1111

1212
async function getGitExtension(): Promise<API | undefined> {
1313
const gitExtension =

src/workflow/workflow.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import * as vscode from "vscode";
22

3-
import { GitHubRepoContext } from "../git/repository";
4-
import { Workflow } from "github-actions-parser/dist/lib/workflow";
5-
import { basename } from "path";
63
import { parse } from "github-actions-parser";
4+
import { Workflow } from "github-actions-parser/dist/lib/workflow";
75
import { safeLoad } from "js-yaml";
6+
import { basename } from "path";
7+
import { GitHubRepoContext } from "../git/repository";
88

99
interface On {
1010
event: string;

0 commit comments

Comments
 (0)