profclems / glab

The GitLab CLI tool. Archived: now officially adopted by GitLab as the official CLI tool and maintained at https://gitlab.com/gitlab-org/cli. See https://github.com/profclems/glab/issues/983
https://glab.readthedocs.io/
MIT License
2.08k stars 163 forks source link

Update default branch of repo #1015

Open frob opened 1 year ago

frob commented 1 year ago

Describe the feature or problem you'd like to solve There is currently not update anything about a gitlab project/repo. I would like to update the default branch of a repo. It might also be nice to update other settings for the a repo.

Propose a Solution Add a glab repo update command and allow for editing some of the settings of the repo. Specifically I would like to be able to update the default branch of a project.

frob commented 1 year ago

Looks like https://github.com/profclems/glab/blob/trunk/api/project.go will need to be edited to implement EditProject from https://github.com/xanzy/go-gitlab/blob/master/projects.go#L880

Once that has been done we would need to update https://github.com/profclems/glab/tree/trunk/commands/project to include the new functionality.

Of course, all appropriate tests will also be needed.

clemsbot commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.