File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -173,14 +173,23 @@ Clone wiki: ${ ansi.hl( upstream.wikiSshCloneUrl ) }
173173 } ,
174174 } ) ;
175175
176+ await Promise . all ( Object . keys ( status . branchStatus ) . map ( branchName =>
177+ pkg . git
178+ . getPreviousRelease ( {
179+ "commitRef" : branchName ,
180+ } )
181+ . then ( res => {
182+ status . branchStatus [ branchName ] . previousRelease = res ;
183+ } ) ) ) ;
184+
176185 for ( const branchName of Object . keys ( status . branchStatus ) . sort ( pkg . git . compareBranches ) ) {
177- const res = await pkg . git . getPreviousRelease ( { "commitRef" : branchName } ) ;
186+ const previousRelease = status . branchStatus [ branchName ] . previousRelease ;
178187
179188 table . write ( {
180189 branchName,
181190 "syncStatus" : status . branchStatus [ branchName ] ,
182- "previousRelease" : res . data ,
183- "unreleasedCommits" : res . data ,
191+ "previousRelease" : previousRelease . data ,
192+ "unreleasedCommits" : previousRelease . data ,
184193 } ) ;
185194 }
186195
You can’t perform that action at this time.
0 commit comments