Dry run by default: the script reads from both hosts (tokens, owners, names, license, SSH) and prints a plan; --apply creates the repositories and the Gitea -> GitHub push mirror after a final yes. Choosing GitHub applies the AGPL-3.0 license to the Gitea repository. A failed step is reported with what exists and how to continue; nothing is ever deleted. create-project.sh is now the entry point; the work lives in src/lib/, one responsibility per file. .gitignore gets !src/lib (the Python template ignores any lib/ folder). Tests grow to 599 checks, with a stub curl and ssh, and guards for the file structure. Task: MIL-002#1 Task: MIL-002#2 Task: MIL-002#3 Task: MIL-002#4 Task: MIL-002#5 Task: MIL-002#6 Refs #9 Refs #10 Refs #11 Refs #12 Refs #13 Refs #14 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
32 lines
1.2 KiB
Bash
32 lines
1.2 KiB
Bash
# RepoFoundry service addresses (not secret).
|
|
#
|
|
# Copy this file to config.env and adjust it. create-project.sh reads it as
|
|
# plain KEY=VALUE lines; it is never executed, so no shell syntax, $variables
|
|
# or command substitution works here. Credentials do NOT belong in this file:
|
|
# put them in .env (see .env.example). A credential key in this file is
|
|
# rejected.
|
|
#
|
|
# Every URL must start with https:// and must not contain a user name, a
|
|
# password, a query string or a fragment.
|
|
|
|
# GitHub REST API base URL.
|
|
GITHUB_API_URL=https://api.github.com
|
|
|
|
# GitHub web base URL, used for the repository links the script prints and
|
|
# for the push-mirror address.
|
|
GITHUB_WEB_URL=https://github.com
|
|
|
|
# Gitea instance base URL. Repository links are derived from it.
|
|
GITEA_URL=https://git.tirsystem.com/
|
|
|
|
# Gitea REST API base URL. If you leave this out it is GITEA_URL + /api/v1.
|
|
GITEA_API_URL=https://git.tirsystem.com/api/v1
|
|
|
|
# Optional. SSH port of the Gitea server, used for the SSH check and later
|
|
# for the framework submodule. Default: 10022.
|
|
#GITEA_SSH_PORT=10022
|
|
|
|
# Optional. How often Gitea pushes to GitHub, as a Go duration (10m0s, 8h0m0s).
|
|
# The server may enforce a minimum. Default: 10m0s.
|
|
#MIRROR_INTERVAL=10m0s
|