Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Are there any command for changing branch setting?? #187

Open
AkhilaDamera opened this issue Aug 6, 2018 · 7 comments
Open

Are there any command for changing branch setting?? #187

AkhilaDamera opened this issue Aug 6, 2018 · 7 comments

Comments

@AkhilaDamera
Copy link

Hi,

After the project creation, I need to create the readme.md file, master branch and change the master branch setting to private/protected. Are there any commands available to initiate the repo and change the master branch settings??

Appreciate your response,

Thanks,
akhila

@it-praktyk
Copy link
Collaborator

You have to create a repository, the README.md file locally, commit changes and push them to GitLab.

You can change the visibility of a project using Set-GitLabProject` function.

@AkhilaDamera
Copy link
Author

I can add file locally and commit to GitLab, I need to automate the process of creating repository and adding the readme file. Do you have any functions available for this??

The Set-GitLabProject is for renaming correct? But,I need to change the branch permission under a repository.

@it-praktyk
Copy link
Collaborator

it-praktyk commented Aug 6, 2018

I can add file locally and commit to GitLab, I need to automate the process of creating repository and adding the readme file. Do you have any functions available for this??

Nope.

The GitLab Branches API is not implemented in the PSGitLab yet.

The Set-GitLabProject is for renaming correct?

Nope, the parameter Visibility is for that.

But,I need to change the branch permission under a repository.

Do you mean to protect a branch?

@AkhilaDamera
Copy link
Author

Yes. I need to change the branch setting to protected and I believe that comes under the Branches API

@AkhilaDamera
Copy link
Author

Any idea when would the PSGitLab support the Branches API feature??

@robinmalik
Copy link
Contributor

There is no roadmap. All additions/improvements are done by the community/public when motivated and available to do so.

@ngetchell
Copy link
Owner

@it-praktyk and @robinmalik are correct. No timeline exists for support for the Branches API. My goal in the project was to cover the APIs I need but make it easy for others to add what they need.

I would welcome any addition from @AkhilaDamera to add support. I'd be more than happy to aid any attempt if you've never done anything like this.

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

No branches or pull requests

4 participants