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

Dynamically handle master, main as default branch #349

Open
akphi opened this issue Dec 28, 2021 · 0 comments
Open

Dynamically handle master, main as default branch #349

akphi opened this issue Dec 28, 2021 · 0 comments

Comments

@akphi
Copy link
Contributor

akphi commented Dec 28, 2021

Gitlab starts using main as their default branch. Right now we hard-coded this to master

The strategy we need to adopt is:

  1. Long Term Dynamically handle this with a new logic centralized at the getBranch() function: i.e. Gitlab project API provides information about which is the default branch - See https://docs.gitlab.com/ee/api/projects.html#get-single-project
  2. Short Term Tell user to configure the default branch on Gitlab at group level to master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant