← 返回
安全合规

gh

Use the GitHub CLI (gh) to perform core GitHub operations: auth status, repo create/clone/fork, issues, pull requests, releases, and basic repo management. Trigger for requests to use gh, manage GitHub repos, PRs, or issues from the CLI.
使用 GitHub CLI (gh) 执行核心 GitHub 操作:认证状态、仓库创建/克隆/Fork、Issue、Pull Request、Release 及基础仓库管理。当请求通过 CLI 使用 gh、管理 GitHub 仓库、PR 或 Issue 时触发。
trumppo
安全合规 clawhub v0.1.0 1 版本 99958 Key: 无需
★ 5
Stars
📥 4,659
下载
💾 190
安装
1
版本
#latest

概述

GitHub CLI (gh)

Overview

Use gh for authenticated GitHub operations from the terminal. Prefer explicit, idempotent commands and report URLs back to the user.

Quick checks

  • Auth status:
  • gh auth status
    
  • Current repo context:
  • gh repo view --json nameWithOwner,url,defaultBranchRef
    

Core workflows

Repo create (private by default)

gh repo create OWNER/NAME --private --confirm --description "..."

If running inside a local repo, use --source . --remote origin --push.

Clone / fork

gh repo clone OWNER/NAME
gh repo fork OWNER/NAME --clone

Issues

  • List:
  • gh issue list --limit 20
    
  • Create:
  • gh issue create --title "..." --body "..."
    
  • Comment:
  • gh issue comment <num> --body "..."
    

Pull requests

  • Create from current branch:
  • gh pr create --title "..." --body "..."
    
  • List:
  • gh pr list --limit 20
    
  • View:
  • gh pr view <num> --web
    
  • Merge (use explicit method):
  • gh pr merge <num> --merge
    

Releases

gh release create vX.Y.Z --title "vX.Y.Z" --notes "..."

Safety notes

  • Confirm the target repo/owner before destructive actions (delete, force push).
  • For private repos, ensure --private is set on create.
  • Prefer --confirm to avoid interactive prompts in automation.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-28 11:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,584
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,697
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,210 📥 266,145