This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ type OctokitRepoData<
3737
3838export type Workflow = OctokitData < "listRepoWorkflows" , "workflows" > ;
3939export type WorkflowRun = OctokitData < "listWorkflowRuns" , "workflow_runs" > & {
40- conclusion : string ;
40+ conclusion : string | null ;
4141} ;
4242
4343export type WorkflowJob = OctokitData < "listJobsForWorkflowRun" , "jobs" > ;
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ export function initResources(context: vscode.ExtensionContext) {
66}
77
88export interface IStatusAndConclusion {
9- status : string ;
10- conclusion : string ;
9+ status : string | null ;
10+ conclusion : string | null ;
1111}
1212
1313export function getAbsoluteIconPath ( relativeIconPath : string ) : {
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ export class WorkflowJobNode extends vscode.TreeItem {
2626 }
2727
2828 hasSteps ( ) : boolean {
29- return this . job . steps && this . job . steps . length > 0 ;
29+ return ! ! ( this . job . steps && this . job . steps . length > 0 ) ;
3030 }
3131
3232 async getSteps ( ) : Promise < WorkflowStepNode [ ] > {
33- return this . job . steps . map (
33+ return ( this . job . steps || [ ] ) . map (
3434 ( s ) => new WorkflowStepNode ( this . gitHubRepoContext , this . job , s )
3535 ) ;
3636 }
You can’t perform that action at this time.
0 commit comments