diff --git a/packages/core/src/ci-environment/index.ts b/packages/core/src/ci-environment/index.ts index 4e7f64d..2fc2156 100644 --- a/packages/core/src/ci-environment/index.ts +++ b/packages/core/src/ci-environment/index.ts @@ -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; };