Use gh for authenticated GitHub operations from the terminal. Prefer explicit, idempotent commands and report URLs back to the user.
gh auth status
gh repo view --json nameWithOwner,url,defaultBranchRef
gh repo create OWNER/NAME --private --confirm --description "..."
If running inside a local repo, use --source . --remote origin --push.
gh repo clone OWNER/NAME
gh repo fork OWNER/NAME --clone
gh issue list --limit 20
gh issue create --title "..." --body "..."
gh issue comment <num> --body "..."
gh pr create --title "..." --body "..."
gh pr list --limit 20
gh pr view <num> --web
gh pr merge <num> --merge
gh release create vX.Y.Z --title "vX.Y.Z" --notes "..."
--private is set on create.--confirm to avoid interactive prompts in automation.共 1 个版本