We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac83b62 commit 354c908Copy full SHA for 354c908
src/commands/fix/git.ts
@@ -24,7 +24,7 @@ function getPkgNameFromPurlObj(purlObj: PackageURL): string {
24
export function getBaseGitBranch() {
25
// Lazily access constants.ENV[GITHUB_REF_NAME].
26
return (
27
- constants.ENV[GITHUB_REF_NAME] ??
+ constants.ENV[GITHUB_REF_NAME] ||
28
// GitHub defaults to branch name "main"
29
// https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches#about-the-default-branch
30
'main'
0 commit comments