fix: use correct gh api command for starring repo (#1274)

`gh repo star` is not a valid GitHub CLI command.
Use `gh api --silent --method PUT /user/starred/OWNER/REPO` instead.
This commit is contained in:
Junho Yeo
2026-01-30 15:58:56 +09:00
committed by GitHub
parent 9ea2a0ff77
commit 11e09cc8da
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -278,7 +278,7 @@ After everything is set up and working, ask the user:
If the user agrees, run:
```bash
gh repo star code-yeongyu/oh-my-opencode
gh api --silent --method PUT /user/starred/code-yeongyu/oh-my-opencode >/dev/null 2>&1 || true
```
**Important**: Only run the command if the user explicitly says yes. Never run it automatically without consent.