fix: fully forge-agnostic — no gitea/github references

This commit is contained in:
Rodin
2026-04-30 12:05:42 -07:00
parent fd5e0aef53
commit 886a4d8b46
2 changed files with 15 additions and 14 deletions
+8 -7
View File
@@ -103,18 +103,19 @@ gh api repos/<org>/<repo>/issues/<num>/comments \
## Output: Repo Creation & Push
Adapt to your git remote (Gitea, GitHub, GitLab, etc.):
Adapt to your git remote:
```bash
# Gitea example:
GITEA_TOKEN=$(cat $GIT_TOKEN_PATH)
curl -s -X POST "https://<git-host>/api/v1/user/repos" \
-H "Authorization: token $GITEA_TOKEN" \
# Create repo via API (example — adapt auth and endpoint to your forge)
TOKEN=$(cat $GIT_TOKEN_PATH)
curl -s -X POST "$GIT_REMOTE/api/v1/user/repos" \
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "<project>-conventions", "auto_init": true, "default_branch": "master", "license": "MIT"}'
# GitHub example:
gh repo create $GIT_ORG/<project>-conventions --public --clone
# Or use your forge's CLI:
# gh repo create $GIT_ORG/<project>-conventions --public --clone
# glab project create <project>-conventions
# Clone, add content, push
cd <project>-conventions