diff --git a/packages/cypress-cloud/lib/git.ts b/packages/cypress-cloud/lib/git.ts index aa67809..fd7742d 100644 --- a/packages/cypress-cloud/lib/git.ts +++ b/packages/cypress-cloud/lib/git.ts @@ -14,7 +14,7 @@ export type GhaEventData = { senderHtmlUrl: string; }; -export const getGitInfo = async (projectRoot: string) => { +export const getGitInfo = async () => { const commit = await commitInfo(); return getCommitDefaults({ branch: commit.branch, diff --git a/packages/cypress-cloud/lib/run.ts b/packages/cypress-cloud/lib/run.ts index 1610f16..89f9dee 100644 --- a/packages/cypress-cloud/lib/run.ts +++ b/packages/cypress-cloud/lib/run.ts @@ -96,7 +96,7 @@ export async function run(params: CurrentsRunParameters = {}) { const run = await createRun({ ci: getCI(ciBuildId), specs: specs.map((spec) => spec.relative), - commit: await getGitInfo(config.projectRoot), + commit: await getGitInfo(), group, platform, parallel: parallel ?? false,