Skip to content

Dynamically handle master, main as default branch #349

@akphi

Description

@akphi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions