Only compare against the last 'push' to master (#468)

This commit is contained in:
Jake Archibald
2019-02-22 11:15:50 +00:00
committed by GitHub
parent fa12b37e53
commit f1859eeef2

View File

@@ -22,6 +22,7 @@ function fetchTravisBuildInfo(user, repo, branch) {
'branch.name': branch,
state: 'passed',
limit: 1,
event_type: 'push',
}).then(r => r.json());
}
@@ -32,9 +33,7 @@ function fetchTravisText(path) {
/**
* Recursively-read a directory and turn it into an array of { name, size, gzipSize }
*/
async function dirToInfoArray(startPath, {
namePrefix = '',
} = {}) {
async function dirToInfoArray(startPath) {
const results = await new Promise((resolve, reject) => {
readdirp({ root: startPath }, (err, results) => {
if (err) reject(err); else resolve(results);