🔀

GitHub PR Workflow

End-to-end pull request automation: create branches, commit changes, open PRs, monitor CI, auto-fix failures, and merge — all from your terminal.

作者 v1.0.0
DevOps & Cloud
正在連線至 VM...
正在連線至 VM...
npx clawhub@latest install github-pr-workflow
1目前安裝數
v1.0.0版本

GitHub PR Workflow automates the full pull request lifecycle on GitHub. From creating a feature branch and drafting a commit message to opening a structured PR, requesting reviewers, polling CI status, auto-fixing failing checks, and finally merging and cleaning up — this skill handles every step so you can focus on writing code, not managing process.

運作原理

The skill operates through the gh CLI when available, falling back seamlessly to git combined with the GitHub REST API via curl. It interprets natural-language instructions like "open a PR targeting main" or "watch CI and fix lint errors", then executes the appropriate shell scripts and API calls. An auto-loop mechanism detects failing checks, attempts fixes, pushes updates, and re-polls until all checks pass or the issue is escalated to you.

核心功能

Branch Creation
Generates conventionally named feature branches from your task description
Commit Drafting
Stages changes and writes structured commit messages automatically
PR Opening
Pushes to origin and creates a pull request with a templated description, labels, and reviewer requests
Issue Linking
Associates PRs with related GitHub issues automatically
CI Polling
Monitors check runs and surfaces failing logs in real time
Auto-Fix Loop
Iterates fix → push → re-check until all status checks go green
Flexible Merge Strategies
Supports squash, rebase, and standard merge commits
Branch Cleanup
Deletes the remote and local branch automatically after a successful merge
Dual Backend
Uses gh CLI when authenticated; falls back to curl + GitHub REST API when not

系統需求

git
Must be installed and configured with user identity
GitHub Account
With write access to the target repository
Authentication
Either gh CLI authenticated via gh auth login, or a GitHub Personal Access Token (PAT) exported as $GITHUB_TOKEN
GitHub Remote
The local repository must have GitHub set as a remote origin

使用情境

Feature Shipping
Turn a finished local branch into a reviewed, merged PR in one conversation
CI Debugging
Automatically surface failing check logs and attempt fixes without manual re-runs
Code Review Coordination
Request specific reviewers and assign labels the moment a PR is opened
Routine Maintenance PRs
Dependency bumps, config updates, and hotfixes with minimal manual steps
Multilingual Workflows
Trigger full PR automation in English or Chinese (e.g., "提个 PR", "合并到 main")

安裝方式

1
Run in your terminal
npx clawhub@latest install github-pr-workflow
or
2
Click the Install button at the top of this page for one-click setup

評價

0 則評價

登入後撰寫評價

尚無評價。來分享你的使用體驗吧!

GitHub PR Workflow Claude Code Skill | MyClaw.ai