File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,10 @@ export class CurrentBranchTreeProvider
112112
113113 const resp = result . data ;
114114 const runs = resp . workflow_runs ;
115+ // We are removing newlines from workflow names for presentation purposes
116+ for ( const run of runs ) {
117+ run . name = run . name ?. replace ( / ( \r \n | \n | \r ) / gm, " " ) ;
118+ }
115119
116120 return this . runNodes ( gitHubRepoContext , runs , true ) ;
117121 }
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ export async function getWorkflowNodes(gitHubRepoContext: GitHubRepoContext) {
3636 workflows . map ( async wf => {
3737 const workflowUri = getWorkflowUri ( gitHubRepoContext , wf . path ) ;
3838 const workflowContext = await getContextStringForWorkflow ( workflowUri ) ;
39+ const nameWithoutNewlines = wf . name . replace ( / ( \r \n | \n | \r ) / gm, " " ) ;
40+
41+ // We are removing all newline characters from the workflow name for presentation purposes
42+ wf . name = nameWithoutNewlines ;
3943
4044 return new WorkflowNode ( gitHubRepoContext , wf , workflowContext ) ;
4145 } )
You can’t perform that action at this time.
0 commit comments