File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
packages/bundler-plugin-core/src/utils/providers Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @codecov/bundler-plugin-core " : patch
3
+ " @codecov/astro-plugin " : patch
4
+ " @codecov/bundle-analyzer " : patch
5
+ " @codecov/nextjs-webpack-plugin " : patch
6
+ " @codecov/nuxt-plugin " : patch
7
+ " @codecov/remix-vite-plugin " : patch
8
+ " @codecov/rollup-plugin " : patch
9
+ " @codecov/solidstart-plugin " : patch
10
+ " @codecov/sveltekit-plugin " : patch
11
+ " @codecov/vite-plugin " : patch
12
+ " @codecov/webpack-plugin " : patch
13
+ ---
14
+
15
+ Resolve issue with Local provider conditional check not being able to detect local values
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ function _getBranch(
37
37
) : ProviderServiceParams [ "branch" ] {
38
38
const { args, envs } = inputs ;
39
39
const branch = args ?. branch ?? envs ?. GIT_BRANCH ?? envs ?. BRANCH_NAME ?? null ;
40
- if ( branch !== "" ) {
40
+ if ( branch !== "" && branch !== null ) {
41
41
debug ( `Using branch: ${ branch } ` , { enabled : output . debug } ) ;
42
42
return branch ;
43
43
}
@@ -91,7 +91,7 @@ function _getSHA(
91
91
) : ProviderServiceParams [ "commit" ] {
92
92
const { args, envs } = inputs ;
93
93
const sha = args ?. sha ?? envs ?. GIT_COMMIT ?? null ;
94
- if ( sha !== "" ) {
94
+ if ( sha !== "" && sha !== null ) {
95
95
debug ( `Using commit: ${ sha } ` , { enabled : output . debug } ) ;
96
96
return sha ;
97
97
}
You can’t perform that action at this time.
0 commit comments