Skip to content

feat: add create-gitlab-project.sh for Free tier#22

Merged
h13 merged 3 commits into
mainfrom
feat/create-gitlab-project
Jul 17, 2026
Merged

feat: add create-gitlab-project.sh for Free tier#22
h13 merged 3 commits into
mainfrom
feat/create-gitlab-project

Conversation

@h13

@h13 h13 commented Jul 16, 2026

Copy link
Copy Markdown
Owner

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 glab CLI.

What it does

  1. Creates a new GitLab project via glab api
  2. Copies template files (excluding template-repo-only files like docs/, README, publish.yml)
  3. Generates a minimal README for the new project
  4. Pushes the initial commit

Usage

# From the template repo root
./scripts/create-gitlab-project.sh --group my-org --name slack-notifier

# Then initialize GAS projects
cd ../slack-notifier
pnpm install
./scripts/init.sh --title "Slack Notifier"

Documentation

  • Updated docs/setup-gitlab.md with a "Per Project (Free Tier)" section
  • Updated docs/setup-gitlab.ja.md with Japanese translation
  • Added notes in existing Premium-tier instructions pointing to the Free tier alternative

Design decisions

  • Separate from init.sh: Repo creation and GAS project setup are different responsibilities. Keeping them separate allows re-running either independently.
  • Not synced to downstream: This script is not in .templatesyncignore, so it only exists in the template repo itself.
  • Minimal README: New projects get a stub README rather than the template's full README.

h13 added 3 commits July 16, 2026 13:43
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.
@h13
h13 merged commit 7152bbb into main Jul 17, 2026
4 checks passed
@h13
h13 deleted the feat/create-gitlab-project branch July 17, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant