Skip to content

Commit

Permalink
Merge branch 'feature/gha-commit-info' of https://github.com/currents…
Browse files Browse the repository at this point in the history
…-dev/cypress-cloud into feature/gha-commit-info
  • Loading branch information
agoldis committed Jan 25, 2024
2 parents 1d7deda + fde7ba9 commit e4c2fd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/cypress-cloud/lib/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export type GhaEventData = {
senderHtmlUrl: string;
};

export const getGitInfo = async () => {
const commit = await commitInfo();
export const getGitInfo = async (projectRoot: string) => {
const commit = await commitInfo(projectRoot);
return getCommitDefaults({
branch: commit.branch,
remoteOrigin: commit.remote,
Expand Down
2 changes: 1 addition & 1 deletion packages/cypress-cloud/lib/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
commit: await getGitInfo(config.projectRoot),
group,
platform,
parallel: parallel ?? false,
Expand Down

0 comments on commit e4c2fd0

Please sign in to comment.