mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-16 10:39:53 +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,
|
'branch.name': branch,
|
||||||
state: 'passed',
|
state: 'passed',
|
||||||
limit: 1,
|
limit: 1,
|
||||||
|
event_type: 'push',
|
||||||
}).then(r => r.json());
|
}).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 }
|
* Recursively-read a directory and turn it into an array of { name, size, gzipSize }
|
||||||
*/
|
*/
|
||||||
async function dirToInfoArray(startPath, {
|
async function dirToInfoArray(startPath) {
|
||||||
namePrefix = '',
|
|
||||||
} = {}) {
|
|
||||||
const results = await new Promise((resolve, reject) => {
|
const results = await new Promise((resolve, reject) => {
|
||||||
readdirp({ root: startPath }, (err, results) => {
|
readdirp({ root: startPath }, (err, results) => {
|
||||||
if (err) reject(err); else resolve(results);
|
if (err) reject(err); else resolve(results);
|
||||||
|
|||||||
Reference in New Issue
Block a user