Create pull requests for code branches
pr-createcommandsetup L1★1
ttu/emergency-supply-tracker ↗What it does
Create GitHub pull request with description from branch commits and conventions
Best for
GitHub workflow when you need a PR auto-generated from branch commits and project template conventions.
Inputs
- · [object Object]
- · [object Object]
- · [object Object]
Outputs
- · [object Object]
- · [object Object]
Requires
- · Bash (git, gh)
- · Read (conventions, CONTRIBUTING)
- · Glob
Preconditions
Branch has committed changes; origin/main exists; gh is authenticated; no uncommitted changes on branch
Failure modes
- · Uncommitted changes present (blocks PR creation)
- · Branch has no commits (nothing to compare)
- · gh auth not configured (silent fail)
- · PR template is malformed or missing key sections
- · Title does not follow convention (e.g., missing scope)
Trust signals
- · Gathers branch info before PR creation (fail-fast on issues)
- · Reads project conventions to generate description
- · PR title derived from commit messages (not auto-generated slug)
- · gh pr create invoked with all fields (title, body, related issues)