搜索

PythonReactSEOPDF
GitHub Skill

pr-completion

Ensure PR checks pass and conflicts are resolved before completing tasks. Use after creating a PR, when marking tasks as done, or when completing work that resulted in a PR.

kamushadenes☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

PR Completion Workflow

Before marking a task as done after creating a PR, verify:

  1. All PR checks pass
  2. No merge conflicts exist

Check PR Status

# View PR checks
gh pr checks

# View PR status (includes mergeable state)
gh pr view --json state,mergeable,mergeStateStatus

Wait for Checks

If checks are pending:

# Wait for checks to complete (blocking)
gh pr checks --watch

If checks fail:

  1. Read check logs: gh pr checks --json name,state,conclusion
  2. Fix failing checks
  3. Push fixes
  4. Re-verify with gh pr checks --watch

Resolve Conflicts

If PR has conflicts (mergeable: CONFLICTING):

# Update branch from base
gh pr update-branch

# Or rebase locally
git fetch origin
git rebase origin/main
# Resolve conflicts
git add .
git rebase --continue
git push --force-with-lease

Completion Checklist

Before set_task_status --status=done:

  • gh pr checks shows all checks passing
  • gh pr view --json mergeable shows MERGEABLE

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!