sizebot: Fix wrong order of base, head arguments (#20751)

The base and head arguments were flipped, so an n% decrease in bundle
size was instead reported as an n% increase.
This commit is contained in:
Andrew Clark 2021-02-05 17:45:25 -06:00 committed by GitHub
parent 4ecf11977c
commit 903384ab0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ function getBundleSizes(pathToSizesDir) {
async function printResultsForChannel(baseResults, headResults) {
// Take the JSON of the build response and
// make an array comparing the results for printing
const results = generateResultsArray(baseResults, headResults);
const results = generateResultsArray(headResults, baseResults);
const packagesToShow = results
.filter(