-
Notifications
You must be signed in to change notification settings - Fork 44
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
Generating a release on a non default branch GitHub #156
Comments
Hi @tim0git What error are you getting? The default branch should come directly from the provider https://github.com/go-semantic-release/provider-github/blob/master/pkg/provider/github.go#L82 |
Yup. Its finds the default branch correctly. And Analyzes dev. However we are triggering the ci workflow on main. And would like to analyze the commits from the main branch without changing the GitHub default branch from dev to main. |
So it does not Error. However it does not find any changes. |
Thanks for clarifying. This isn't currently supported (@christophwitzko can double check) We will need to add a config option to override the default branch. semantic-release/cmd/semantic-release/main.go Line 191 in 9c07709
Ciaran |
Thanks @cliedeman, you are right. I will leave this issue open for now, until we add support for it. |
Hi folks how do i configure the package to generate a release on main when we have set the default branch to be dev?
The commit analyser is reading the default branch. And i would like to to read the main branch.
The text was updated successfully, but these errors were encountered: