技能 编程开发 处理 GitHub 拉取请求评论

处理 GitHub 拉取请求评论

v20261106
address-github-comments
此技能帮助开发者使用 GitHub CLI 高效处理开放拉取请求中的审查评论或问题反馈。工作流程包括检查评论、分类反馈、应用必要的代码修复以及标记线程为已解决。用户需在开始工作流前确保身份验证配置正确,以确保与平台的顺畅交互。
获取技能
303 次下载
概览

Address GitHub Comments

Overview

Efficiently address PR review comments or issue feedback using the GitHub CLI (gh). This skill ensures all feedback is addressed systematically.

Prerequisites

Ensure gh is authenticated.

gh auth status

If not logged in, run gh auth login.

Workflow

1. Inspect Comments

Fetch the comments for the current branch's PR.

gh pr view --comments

Or use a custom script if available to list threads.

2. Categorize and Plan

  • List the comments and review threads.
  • Propose a fix for each.
  • Wait for user confirmation on which comments to address first if there are many.

3. Apply Fixes

Apply the code changes for the selected comments.

4. Respond to Comments

Once fixed, respond to the threads as resolved.

gh pr comment <PR_NUMBER> --body "Addressed in latest commit."

Common Mistakes

  • Applying fixes without understanding context: Always read the surrounding code of a comment.
  • Not verifying auth: Check gh auth status before starting.
信息
分类 编程开发
名称 address-github-comments
版本 v20261106
大小 1.2KB
更新时间 2026-11-07
语言