Add feature to create submodules in repositories
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
New Resource
I'm missing a resource to create submodules within repositories.
It could look something like this:
resource "gitlab_repository_submodule" "inventory" {
project = gitlab_project.this.id
branch = "main"
submodule_path = "inventory"
submodule_source = "git@gitlab.com:myorg/inventory.git"
commit_message = "add inventory submodule"
}
Related GitLab APIs
API documentation: https://docs.gitlab.com/ee/api/repository_submodules.html (can only update existing submodule for now)
Additional Details
-
GitLab REST API resources available (read for data sources, crud for resources) -
go-gitlabdoes support the related GitLab API already. Relevantgo-gitlabfile: https://github.com/xanzy/go-gitlab/blob/master/repository_submodules.go -
I'd like to contribute it myself
Edited by 🤖 GitLab Bot 🤖