使用GitHub CLI(gh)来创建 GitHub Issue

1. 安装GitHub CLI (Windows)

  • 官网 https://cli.github.com/

安装完毕


查看安装的版本:

gh--version
# 查看帮助信息gh--help

2. gh 登录

# 检查认证状态gh auth status

# 登录/认证状态gh auth login

# 认证令牌添加 read:project 权限gh auth refresh-sread:project

# 完整的项目权限(读取和写入):gh auth refresh-sproject

# 检查认证状态gh auth status

3.创建 issue

# 查看正确的项目名称gh project list--owner"组织名称/用户名"

# 创建issuegh issue create ^--repo"Xxx-sh02/KBDoc"^--title"[Feature] 添加深色模式支持"^--body"epic-1,story1.1 automated-workflow ## 功能描述\n希望添加深色模式以减少眼睛疲劳\n\n## 使用场景\n用户在夜间使用应用时\n\n## 期望效果\n- 支持自动切换\n- 支持手动切换\n- 记住用户偏好"^--assignee@me ^--label"enhancement"^--milestone"Sprint-26-01"^--project"KBDocV1"

GitHub 上详情界面:

4.恭喜 Success O(∩_∩)O~