Skip to content

Commit

Permalink
updating commit sha getter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlfieJones committed Apr 11, 2024
1 parent 890c038 commit 47ebd99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strong-avocados-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pixeleye/cli-env": minor
---

Updating commit sha calculation order
2 changes: 1 addition & 1 deletion integrations/cli/cli-env/src/getEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function getEnvironment(): Promise<Environment> {

return {
name: name,
commit: (process.env.PIXELEYE_COMMIT || commit || gitCommit)?.trim(),
commit: (process.env.PIXELEYE_COMMIT || gitCommit || commit)?.trim(),
branch: process.env.PIXELEYE_BASE_BRANCH || isPr ? prBranch : branch,
targetBranch: isPr ? process.env.PIXELEYE_PR_BRANCH || branch : undefined,
isCI: isCi,
Expand Down

0 comments on commit 47ebd99

Please sign in to comment.