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:
parent
6bb2854162
commit
3074434887
@ -278,7 +278,7 @@ After everything is set up and working, ask the user:
|
|||||||
|
|
||||||
If the user agrees, run:
|
If the user agrees, run:
|
||||||
```bash
|
```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.
|
**Important**: Only run the command if the user explicitly says yes. Never run it automatically without consent.
|
||||||
|
|||||||
@ -400,7 +400,7 @@ async function runNonTuiInstall(args: InstallArgs): Promise<number> {
|
|||||||
)
|
)
|
||||||
|
|
||||||
console.log(`${SYMBOLS.star} ${color.yellow("If you found this helpful, consider starring the repo!")}`)
|
console.log(`${SYMBOLS.star} ${color.yellow("If you found this helpful, consider starring the repo!")}`)
|
||||||
console.log(` ${color.dim("gh repo star code-yeongyu/oh-my-opencode")}`)
|
console.log(` ${color.dim("gh api --silent --method PUT /user/starred/code-yeongyu/oh-my-opencode >/dev/null 2>&1 || true")}`)
|
||||||
console.log()
|
console.log()
|
||||||
console.log(color.dim("oMoMoMoMo... Enjoy!"))
|
console.log(color.dim("oMoMoMoMo... Enjoy!"))
|
||||||
console.log()
|
console.log()
|
||||||
@ -518,7 +518,7 @@ export async function install(args: InstallArgs): Promise<number> {
|
|||||||
)
|
)
|
||||||
|
|
||||||
p.log.message(`${color.yellow("★")} If you found this helpful, consider starring the repo!`)
|
p.log.message(`${color.yellow("★")} If you found this helpful, consider starring the repo!`)
|
||||||
p.log.message(` ${color.dim("gh repo star code-yeongyu/oh-my-opencode")}`)
|
p.log.message(` ${color.dim("gh api --silent --method PUT /user/starred/code-yeongyu/oh-my-opencode >/dev/null 2>&1 || true")}`)
|
||||||
|
|
||||||
p.outro(color.green("oMoMoMoMo... Enjoy!"))
|
p.outro(color.green("oMoMoMoMo... Enjoy!"))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user