Loading...
Loading...
Compare original and translation side by side
gh apigh apiundefinedundefined
`gh api`는 모든 GitHub API 엔드포인트에 접근할 수 있어 `allowed-tools`로 특정 동작만 허용하는 것이 불가능하다. `gh issue`, `gh pr` 등 구체적 서브커맨드를 사용하면 `Bash(gh issue:*)` 형태로 세밀한 권한 제어가 가능하다.
`gh api`可以访问所有GitHub API端点,无法通过`allowed-tools`仅允许特定操作。使用`gh issue`、`gh pr`等具体子命令时,可以通过`Bash(gh issue:*)`的形式实现精细的权限控制。undefinedundefined
이슈 생성, PR 병합, 코멘트 작성 등 외부에 영향을 미치는 Write 작업은 반드시 사용자에게 내용을 보여주고 확인을 받은 뒤 수행한다.
创建Issue、合并PR、添加评论等会对外界产生影响的写入操作,必须先向用户展示内容并获得确认后再执行。git -Cgit -Cundefinedundefined
현재 디렉토리가 작업 대상 레포지토리와 동일하면 `git -C` 옵션은 불필요한 중복이다. 다른 경로의 레포지토리를 대상으로 할 때만 사용한다.
如果当前目录与操作目标仓库一致,`git -C`选项属于多余的重复。仅当操作其他路径的仓库时才使用该选项。undefinedundefined
`gh` CLI는 현재 디렉토리의 Git 원격 정보를 자동으로 감지한다. `--repo` 플래그는 다른 레포지토리를 대상으로 할 때만 사용한다.
`gh` CLI会自动识别当前目录的Git远程信息。仅当操作其他仓库时才使用`--repo`参数。| 명령어 | 설명 |
|---|---|
| 이슈 목록 조회 |
| 이슈 상세 조회 |
| 이슈 코멘트 조회 |
| 관련 이슈 상태 요약 |
| PR 목록 조회 |
| PR 상세 조회 |
| PR 코멘트 조회 |
| 관련 PR 상태 요약 |
| PR 변경사항 조회 |
| PR CI 상태 확인 |
| 릴리스 목록 조회 |
| 릴리스 상세 조회 |
| 레이블 목록 조회 |
| 레포지토리 정보 조회 |
| 이슈 검색 |
| PR 검색 |
| 워크플로우 실행 목록 조회 |
| 워크플로우 실행 상세 조회 |
| 워크플로우 실행 로그 조회 |
| 실패한 스텝 로그만 조회 |
| 워크플로우 목록 조회 |
| 워크플로우 상세 조회 |
| 命令 | 说明 |
|---|---|
| 查看Issue列表 |
| 查看Issue详情 |
| 查看Issue评论 |
| 查看相关Issue状态摘要 |
| 查看PR列表 |
| 查看PR详情 |
| 查看PR评论 |
| 查看相关PR状态摘要 |
| 查看PR变更内容 |
| 查看PR CI状态 |
| 查看Release列表 |
| 查看Release详情 |
| 查看标签列表 |
| 查看仓库信息 |
| 搜索Issue |
| 搜索PR |
| 查看工作流执行列表 |
| 查看工作流执行详情 |
| 查看工作流执行日志 |
| 仅查看失败步骤的日志 |
| 查看工作流列表 |
| 查看工作流详情 |
| 명령어 | 설명 |
|---|---|
| 이슈 생성 |
| 이슈 닫기 |
| 이슈 다시 열기 |
| 이슈 수정 |
| 이슈에 코멘트 작성 |
| PR 생성 |
| PR 병합 |
| PR 닫기 |
| PR 다시 열기 |
| PR 수정 |
| PR에 코멘트 작성 |
| PR 리뷰 제출 |
| 릴리스 생성 |
| 릴리스 삭제 |
| 레이블 생성 |
| 레이블 수정 |
| 레이블 삭제 |
| 워크플로우 재실행 |
| 워크플로우 실행 취소 |
| 워크플로우 수동 실행 (workflow_dispatch) |
| 워크플로우 비활성화 |
| 워크플로우 활성화 |
| 命令 | 说明 |
|---|---|
| 创建Issue |
| 关闭Issue |
| 重新打开Issue |
| 修改Issue |
| 为Issue添加评论 |
| 创建PR |
| 合并PR |
| 关闭PR |
| 重新打开PR |
| 修改PR |
| 为PR添加评论 |
| 提交PR评审 |
| 创建Release |
| 删除Release |
| 创建标签 |
| 修改标签 |
| 删除标签 |
| 重新执行工作流 |
| 取消工作流执行 |
| 手动执行工作流(workflow_dispatch) |
| 禁用工作流 |
| 启用工作流 |
undefinedundefined
**연결 키워드:** `Closes`, `Fixes`, `Resolves` (대소문자 무관)
**关联关键字:** `Closes`、`Fixes`、`Resolves`(大小写不敏感)undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedghghgh issuegh issuegh issue list [--state open|closed|all] [--label name] [--assignee handle]
gh issue view {number} [--comments]
gh issue create --title "제목" --body "본문" [--label name] [--assignee handle]
gh issue close {number} [--reason completed|not_planned]
gh issue reopen {number}
gh issue edit {number} [--title "새 제목"] [--add-label name] [--remove-label name]
gh issue comment {number} --body "코멘트"
gh issue statusgh issue list [--state open|closed|all] [--label name] [--assignee handle]
gh issue view {number} [--comments]
gh issue create --title "标题" --body "内容" [--label name] [--assignee handle]
gh issue close {number} [--reason completed|not_planned]
gh issue reopen {number}
gh issue edit {number} [--title "新标题"] [--add-label name] [--remove-label name]
gh issue comment {number} --body "评论"
gh issue statusgh prgh prgh pr list [--state open|closed|merged|all] [--label name] [--author handle]
gh pr view {number} [--comments]
gh pr create --title "제목" --body "본문" [--draft] [--reviewer handle]
gh pr merge {number} [--squash|--merge|--rebase] [--delete-branch]
gh pr close {number}
gh pr reopen {number}
gh pr edit {number} [--title "새 제목"] [--add-label name] [--add-reviewer handle]
gh pr comment {number} --body "코멘트"
gh pr review {number} [--approve|--comment|--request-changes] [--body "리뷰"]
gh pr diff {number}
gh pr checks {number}
gh pr statusgh pr list [--state open|closed|merged|all] [--label name] [--author handle]
gh pr view {number} [--comments]
gh pr create --title "标题" --body "内容" [--draft] [--reviewer handle]
gh pr merge {number} [--squash|--merge|--rebase] [--delete-branch]
gh pr close {number}
gh pr reopen {number}
gh pr edit {number} [--title "新标题"] [--add-label name] [--add-reviewer handle]
gh pr comment {number} --body "评论"
gh pr review {number} [--approve|--comment|--request-changes] [--body "评审意见"]
gh pr diff {number}
gh pr checks {number}
gh pr statusgh releasegh releasegh release list
gh release view {tag}
gh release create {tag} [--title "제목"] [--notes "노트"] [--generate-notes]
gh release delete {tag} [--yes]gh release list
gh release view {tag}
gh release create {tag} [--title "标题"] [--notes "说明"] [--generate-notes]
gh release delete {tag} [--yes]gh labelgh labelgh label list
gh label create {name} [--color hex] [--description "설명"]
gh label edit {name} [--name "새이름"] [--color hex] [--description "설명"]
gh label delete {name} [--yes]gh label list
gh label create {name} [--color hex] [--description "描述"]
gh label edit {name} [--name "新名称"] [--color hex] [--description "描述"]
gh label delete {name} [--yes]gh repogh repogh repo view [--web]
gh repo clone {owner}/{repo}gh repo view [--web]
gh repo clone {owner}/{repo}gh rungh rungh run list [--workflow name] [--status completed|in_progress|failure|success]
gh run view {run-id} [--log] [--log-failed]
gh run rerun {run-id} [--failed]
gh run cancel {run-id}
gh run watch {run-id}gh run list [--workflow name] [--status completed|in_progress|failure|success]
gh run view {run-id} [--log] [--log-failed]
gh run rerun {run-id} [--failed]
gh run cancel {run-id}
gh run watch {run-id}gh workflowgh workflowgh workflow list
gh workflow view {name|id}
gh workflow run {name|id} [-f key=value] [--ref branch]
gh workflow disable {name|id}
gh workflow enable {name|id}gh workflow list
gh workflow view {name|id}
gh workflow run {name|id} [-f key=value] [--ref branch]
gh workflow disable {name|id}
gh workflow enable {name|id}gh searchgh searchgh search issues {query} [--repo owner/repo] [--state open|closed]
gh search prs {query} [--repo owner/repo] [--state open|closed|merged]gh search issues {query} [--repo owner/repo] [--state open|closed]
gh search prs {query} [--repo owner/repo] [--state open|closed|merged]