fix: fully forge-agnostic — no gitea/github references
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user