l-pr

Featured

Create a draft pull request targeting develop. Auto-generates PR body from design files, GitHub issues, and/or commit history. Use when opening a PR.

Web & Frontend 2,969 stars 188 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Create Pull Request Create a draft PR targeting `develop`. Auto-generates title and body from a reference (design file or issue) plus commit history. ## Arguments - `#123` — GitHub issue number as reference - `path/to/design.md` — Design file as reference - (none) — Will prompt for a reference ## Instructions ### 1. Gather State Run in a **single** bash call: ```bash echo "===BRANCH===" git branch --show-current echo "===STATUS===" git status --porcelain echo "===REMOTE===" git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo "no-upstream" echo "===COMMITS===" git log develop..HEAD --oneline 2>/dev/null || git log origin/develop..HEAD --oneline echo "===CHANGESETS===" git diff develop..HEAD --name-only -- '.changeset/*.md' 2>/dev/null ``` If on `develop` with no commits ahead: "No commits to create a PR from. Commit your changes first." and stop. ### 2. Handle Uncommitted Changes If there are uncommitted changes, run `/l-commit -p` to commit and push. If already committed but not pushed, push: ```bash git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || git push -u origin $(git branch --show-current) git push ``` ### 3. Resolve Reference **If `$ARGUMENTS` contains an issue number** (e.g., `#123`): - Fetch issue details: `gh issue view 123` - Use as reference source **If `$ARGUMENTS` contains a file path** (e.g., `designs/walker/design.md`): - Read the design file - Use as reference source **If no argument provided**, prom...

Details

Author
lowdefy
Repository
lowdefy/lowdefy
Created
5 years ago
Last Updated
today
Language
JavaScript
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category