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

Generating a release on a non default branch GitHub #156

Open
tim0git opened this issue Jun 26, 2023 · 5 comments
Open

Generating a release on a non default branch GitHub #156

tim0git opened this issue Jun 26, 2023 · 5 comments

Comments

@tim0git
Copy link

tim0git commented Jun 26, 2023

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.

@cliedeman
Copy link
Contributor

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

@tim0git
Copy link
Author

tim0git commented Jun 26, 2023

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.

@tim0git
Copy link
Author

tim0git commented Jun 26, 2023

So it does not Error. However it does not find any changes.

@cliedeman
Copy link
Contributor

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.

"private": fmt.Sprintf("%t", repoInfo.Private),

Ciaran

@christophwitzko
Copy link
Member

Thanks @cliedeman, you are right. I will leave this issue open for now, until we add support for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants