Skip to content

Commit a65e12f

Browse files
committed
Fix lint errors: await promise, remove non-null assertion, fix template expression
1 parent fc52ae5 commit a65e12f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/triggerWorkflowRun.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export function registerTriggerWorkflowRun(context: vscode.ExtensionContext, sto
169169
}
170170

171171
if (dispatched) {
172-
vscode.window.withProgress(
172+
await vscode.window.withProgress(
173173
{
174174
location: vscode.ProgressLocation.Window,
175175
title: "Waiting for workflow run to start..."
@@ -183,11 +183,11 @@ export function registerTriggerWorkflowRun(context: vscode.ExtensionContext, sto
183183
const result = await gitHubRepoContext.client.actions.listWorkflowRuns({
184184
owner: gitHubRepoContext.owner,
185185
repo: gitHubRepoContext.name,
186-
workflow_id: workflowIdForApi!,
186+
workflow_id: workflowIdForApi as string | number,
187187
per_page: 1
188188
});
189189
const newLatestRunId = result.data.workflow_runs[0]?.id;
190-
log(`Latest run ID found: ${newLatestRunId} (Previous: ${latestRunId})`);
190+
log(`Latest run ID found: ${newLatestRunId} (Previous: ${latestRunId ?? 'none'})`);
191191

192192
if (newLatestRunId && newLatestRunId !== latestRunId) {
193193
log(`Found new workflow run: ${newLatestRunId}. Triggering refresh and polling.`);

0 commit comments

Comments
 (0)