feat(cli): create a Forgejo repo by default on forge app create #29

Merged
gmackie merged 1 commit from feat/app-create-repo-default into main 2026-06-26 19:19:59 +00:00
Owner

Part 4 (keystone, creation side). Every ForgeGraph app should have a Forgejo repository — CI/deploys build from it, and #26 now rejects CF Workers deploys for apps without one. forge app create made repo creation opt-in (--repo), so apps routinely ended up repo-less and GitHub-only (the linear-clone failure mode).

  • --repo now defaults true; new apps get a linked Forgejo repo automatically.
  • --no-repo added as the explicit escape hatch.
  • The //go:build integration repo-create test keeps its intent via --no-repo.

Agent builds (incl. -tags integration); cmd/fg/commands tests pass.

🤖 Generated with Claude Code

Part 4 (keystone, creation side). Every ForgeGraph app should have a Forgejo repository — CI/deploys build from it, and #26 now rejects CF Workers deploys for apps without one. `forge app create` made repo creation **opt-in** (`--repo`), so apps routinely ended up repo-less and GitHub-only (the linear-clone failure mode). - `--repo` now defaults **true**; new apps get a linked Forgejo repo automatically. - `--no-repo` added as the explicit escape hatch. - The `//go:build integration` repo-create test keeps its intent via `--no-repo`. Agent builds (incl. `-tags integration`); `cmd/fg/commands` tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(cli): create a Forgejo repo by default on forge app create
Some checks failed
AI Code Review / review (pull_request) Failing after 9s
CI / ci (pull_request) Successful in 16m50s
82b392fd9b
Every ForgeGraph app should have a Forgejo repository — CI and deploys build
from it, and #26 now rejects deploys for apps without one. Make repo creation
the default (was opt-in --repo); add --no-repo as the escape hatch. Keeps the
explicit-repo integration test intact via --no-repo.
Sign in to join this conversation.
No description provided.