feat: add create-gitlab-project.sh for Free tier#22
Merged
Conversation
Add a script that creates a new GitLab repository from this template, as an alternative to "Create from template" which requires Premium. - scripts/create-gitlab-project.sh: creates GitLab repo via glab API, copies template files, pushes initial commit - docs/setup-gitlab.md: add Free tier section with usage instructions - docs/setup-gitlab.ja.md: Japanese translation of Free tier section
namespace_path is not documented in the GitLab API. Resolve the group path to a numeric namespace_id via the namespaces API before creating the project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
scripts/create-gitlab-project.sh— a script that creates a new GitLab repository from this template without requiring Premium tier.GitLab Free tier does not support Group project templates ("Create from template"). This script provides an equivalent workflow using the
glabCLI.What it does
glab apiUsage
Documentation
docs/setup-gitlab.mdwith a "Per Project (Free Tier)" sectiondocs/setup-gitlab.ja.mdwith Japanese translationDesign decisions
.templatesyncignore, so it only exists in the template repo itself.