Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace deprecated gitlab ci var #1404

Merged
merged 5 commits into from
Jul 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/drivers/gitlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,10 @@
}

get branch() {
return process.env.CI_BUILD_REF_NAME;
if ('CI_COMMIT_BRANCH' in process.env) {
return process.env.CI_COMMIT_BRANCH

Check failure on line 534 in src/drivers/gitlab.js

View workflow job for this annotation

GitHub Actions / lint

Insert `;`
dacbd marked this conversation as resolved.
Show resolved Hide resolved
}
return process.env.CI_COMMIT_REF_NAME;
}

get userEmail() {
Expand Down