Skip to content

Commit

Permalink
added gha commit info
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangarano committed Jan 22, 2024
1 parent 246b48e commit 8450820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cypress-cloud/lib/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
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(config.projectRoot),
commit: await getGitInfo(),
group,
platform,
parallel: parallel ?? false,
Expand Down

0 comments on commit 8450820

Please sign in to comment.