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

1. 安装GitHub CLI (Windows)

安装完毕

查看安装的版本:

bash 复制代码
gh --version
bash 复制代码
# 查看帮助信息
gh --help

2. gh 登录

bash 复制代码
# 检查认证状态
gh auth status
bash 复制代码
# 登录/认证状态
gh auth login
bash 复制代码
# 认证令牌添加 read:project 权限
gh auth refresh -s read:project
bash 复制代码
# 完整的项目权限(读取和写入):
gh auth refresh -s project
bash 复制代码
# 检查认证状态
gh auth status

3.创建 issue

bash 复制代码
# 查看正确的项目名称
gh project list --owner "组织名称/用户名"
bash 复制代码
# 创建issue
gh 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~

相关推荐
wangruofeng13 小时前
opencodex 解锁 Codex 任意模型,一个本地代理打通 Claude/Kimi/GLM/DeepSeek
llm·github·openai
一点一木15 小时前
从60首歌到1个网站:输入你的故事,还你一首歌
前端·github
刘较瘦_19 小时前
AI 开发中的 Git Submodule 父子仓库模式:前后端分仓管理与协作实践
前端·github
DeMinds1 天前
内容没有丢,我为什么总在重新整理?|DeMinds 如何让工作接着继续
ios·github·markdown
寒水馨1 天前
macOS下载、安装openclaw-v2026.7.1(附安装包OpenClaw-2026.7.1.dmg)
macos·大模型·github·开源软件·ai助手·openclaw·gpt-5.6
徐小夕1 天前
花了3天,我写了一款开源AI公众号编辑器
前端·vue.js·github
CCPC不拿奖不改名2 天前
大模型推理架构与开源生态知识整理
数据库·windows·python·架构·langchain·开源·github
redreamSo2 天前
一天涨 1800 星的 GitHub 榜首:AI 编程瓶颈变成了 token
人工智能·开源·github
小弥儿2 天前
GitHub今日热榜 | 2026-07-20:AI Agent 知识体系迎来系统化梳理
学习·开源·github