-
Notifications
You must be signed in to change notification settings - Fork 89
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
Create non existent branches #20
Comments
Hi @twhiston , sorry for a late reply! I'll take a look at how much work would this require and get back to you. We are of course open to getting PR with this too. Just let me know if you want to work on this so that we don't duplicate our efforts. :) |
Hi @gdubicki , thanks very much for the response, not sure that i have the bandwidth to work on this myself atm (sorry i know that sucks!), but if no one else has time in the New Year I might try to jump on it. If you do make an assessment of the effort required please do share it on here. The easiest way to deal with it manually is to commit some dummy file content with the api so that the branch can be created (a generic readme in this case), so that is how we are working around it currently before calling gitlabform to apply the settings that we need. Thanks for an awesome tool! |
Should be possible via https://docs.gitlab.com/ee/api/branches.html#create-repository-branch api endpoint, would be nice to implement this in gitlabform. |
I know it's an old post. Thought I'd leave my feedback on this feature request. Do you still see a need for this feature @twhiston , @lukasmrtvy ?
In my view, the above workflow doesn't make quite make sense. I assume people are creating repos in your namespace using Gitlab UI. I believe the default branch (i.e. There are also other feature request that seems to indicate if a branch doesn't exist, corresponding protection setting shouldn't be configured. Potentially these are conflicting requirement. I'd probably tweak your workflow a bit differently. I used something like this:
Thoughts? |
I don't work as an engineer any more, so I have no stake in this feature now I'm afraid. |
@gdubicki - should we close this issue since there aren't any activity and not many are looking for this feature. |
Closing, but if anyone wants to actually implement this and discuss it first then please reopen! |
Does it make sense to add the ability to create branches in the tool?
I ask because we want to use it to keep our repo settings in line as people create repos in our namesapce, therefore the ideal flow would be:
repo created > hook fired > gitlabform run > master branch is created and branch protection enabled.
The text was updated successfully, but these errors were encountered: