Skip to content

Commit

Permalink
fix(core): fix branch detection on CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfez authored and gregberge committed Sep 14, 2022
1 parent c603921 commit 24549b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/ci-environment/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getCiEnvironment = ({
? "Git"
: null;
const commit = ciContext.commit ?? null;
const branch = ciContext.branch ?? null;
const branch = (ciContext.branch || ciContext.prBranch) ?? null;

return commit ? { name, commit, branch } : null;
};

0 comments on commit 24549b1

Please sign in to comment.