get the actual sha and run with that
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com> Signed-off-by: web-next-automation <web-platform@doordash.com>
This commit is contained in:
committed by
web-next-automation
parent
b0b1371075
commit
d1b44c9a4a
@@ -23,7 +23,11 @@ import {
|
||||
|
||||
export async function command(opts: OptionValues) {
|
||||
let packages = await PackageGraph.listTargetPackages();
|
||||
|
||||
let since = '';
|
||||
if (opts.since) {
|
||||
const { stdout: sinceRaw } = await exec('git', ['rev-parse', opts.since]);
|
||||
since = sinceRaw.toString().trim();
|
||||
const graph = PackageGraph.fromPackages(packages);
|
||||
const changedPackages = await graph.listChangedPackages({
|
||||
ref: opts.since,
|
||||
@@ -47,10 +51,10 @@ export async function command(opts: OptionValues) {
|
||||
severity: 0,
|
||||
} as CiRunDetails;
|
||||
for (const pkg of checkablePackages) {
|
||||
const baseRef = opts.since;
|
||||
const sinceCommands = since ? ['--since', since] : [];
|
||||
const { stdout } = await exec(
|
||||
'yarn',
|
||||
['check:api', '--ignore', '--json', '--since', baseRef],
|
||||
['check:api', '--ignore', '--json', ...sinceCommands],
|
||||
{
|
||||
cwd: pkg.dir,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user