File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ exports.diffTable = (
168
168
) => {
169
169
let changedRows = [ ] ;
170
170
let unChangedRows = [ ] ;
171
+ let baselineRows = [ ] ;
171
172
172
173
let totalTime = 0 ;
173
174
let totalDelta = 0 ;
@@ -187,7 +188,9 @@ exports.diffTable = (
187
188
getDeltaText ( delta , difference ) ,
188
189
iconForDifference ( difference ) ,
189
190
] ;
190
- if ( isUnchanged && collapseUnchanged ) {
191
+ if ( name . includes ( 'directly' ) ) {
192
+ baselineRows . push ( columns ) ;
193
+ } else if ( isUnchanged && collapseUnchanged ) {
191
194
unChangedRows . push ( columns ) ;
192
195
} else {
193
196
changedRows . push ( columns ) ;
@@ -200,6 +203,11 @@ exports.diffTable = (
200
203
const outUnchanged = markdownTable ( unChangedRows ) ;
201
204
out += `\n\n<details><summary><strong>View Unchanged</strong></summary>\n\n${ outUnchanged } \n\n</details>\n\n` ;
202
205
}
206
+
207
+ if ( baselineRows . length !== 0 ) {
208
+ const outBaseline = markdownTable ( baselineRows . map ( line => line . slice ( 0 , 2 ) ) ) ;
209
+ out += `\n\n<details><summary><strong>View Baselines</strong></summary>\n\n${ outBaseline } \n\n</details>\n\n` ;
210
+ }
203
211
204
212
if ( showTotal ) {
205
213
const totalDifference = ( ( totalDelta / totalTime ) * 100 ) | 0 ;
You can’t perform that action at this time.
0 commit comments