feat: post-create init workflow #3
Reference in New Issue
Block a user
Delete Branch "feat/post-create-init"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
.gitea/workflows/init.yml— a one-shot bootstrap workflow that runs automatically on the first push tomainof any repo created from this template.What it does:
CLAUDE.mdexistence check — skips entirely if already initialisedPROJECT_NAMEandMODULE_PATHfrom the git remote (no manual input needed)__PROJECT_NAME__and__MODULE_PATH__in all file contentscmd/__PROJECT_NAME__/→cmd/$PROJECT_NAME/task context:sync→ generatesCLAUDE.md,AGENTS.md,.cursorrules,.context/mcp.jsonmainResult: After
create_project_from_template, the new repo is fully initialised and ready forgit clone && claudewith zero manual steps.Prerequisite: Runner needs
GITEA_TOKENsecret with write access to the repo (for the push-back step). This should already exist as a org-level secret if you have one configured, otherwise add it per-repo.