mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-16 02:29:50 +00:00
Only compare against the last 'push' to master (#468)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user