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
Is mapping ci-condition-opt from the command line wrong? #134
Comments
ted-vo
changed the title
Mapping ci-condition-opt from command line is wrong
Is mapping ci-condition-opt from the command line wrong?
Mar 11, 2022
Hey @ted-v9n, thanks for investigating this. semantic-release/pkg/config/config.go Line 78 in 5c34391
So yes, this is a bug and it is currently impossible to overwrite camelCase configuration options. In your case, you could try the --no-ci flag to skip the ci condition.
|
christophwitzko
added a commit
that referenced
this issue
Mar 13, 2022
christophwitzko
added a commit
that referenced
this issue
Mar 13, 2022
Hi @christophwitzko , thank you so much. I appiled --no-ci to workaround. 👌 |
awesome, I also fixed it with the next release 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
My repo setting default branch:
develop
I just want to use ci-condition-opt to override
defaultBranch
.My command:
./semantic-release --provider gitlab --ci-condition gitlab --ci-condition-opt defaultBranch="*" --token ***
I see code override ci-condition-opt here:
semantic-release/cmd/semantic-release/main.go
Line 168 in 5c34391
and pass the conf to condition-gitlab and run condition here:
https://github.com/go-semantic-release/condition-gitlab/blob/268fae569178cdfc0b17da5122fa30c7d77f8a03/pkg/condition/gitlab.go#L34
Expected behavior:
It should be py pass
defaultBranch
to "*"Actual behavior:
defaultBranch
run atcondition-gitlab.RunCondition
still is value fromrepoInfo.DefaultBranch
Try to debug:
I just build
go-semantic-release
by myself to log what it happendedResult is in a picture. Value
defaultBranch="*"
from commend line has been change todefaultbranch:*
(key was lowercase). But actual key isdefaultBranch
pass to RunCondition.Is it a bug?
p/s: Sorry because English is not my primary language.
The text was updated successfully, but these errors were encountered: