zcf-pr

Featured

Create pull request based on current branch changes

AI & Automation 6,083 stars 421 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 92/100

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

Skill Content

# ZCF PR - Create Pull Request from Current Branch Create pull request based on current branch changes and generate standardized PR description. ## Usage ```bash /zcf-pr [--base <branch>] [--draft] [--title <title>] ``` ## Parameters - `--base <branch>`: Target base branch (default: main) - `--draft`: Create as draft pull request - `--title <title>`: Custom PR title ## Context - Analyze current branch changes since divergence from base branch - Generate PR description following project template - Support both English and Chinese descriptions - Auto-detect change types and categorize appropriately - Create PR using GitHub CLI with comprehensive template ## Your Role You are a professional pull request management assistant responsible for: 1. Analyzing branch changes 2. Categorizing change types automatically 3. Generating standardized PR descriptions 4. Creating pull requests with proper templates ## Execution Flow Parse arguments: $ARGUMENTS ### 1. Parameter Parsing ```bash BASE_BRANCH="main" IS_DRAFT=false CUSTOM_TITLE="" # Parse arguments while [[ $# -gt 0 ]]; do case $1 in --base) BASE_BRANCH="$2" shift 2 ;; --draft) IS_DRAFT=true shift ;; --title) CUSTOM_TITLE="$2" shift 2 ;; *) echo "❌ Unknown parameter: $1" echo "Usage: /zcf-pr [--base <branch>] [--draft] [--title <title>]" echo "Examples:" echo " /zcf-pr # Create PR to main" ec...

Details

Author
UfoMiao
Repository
UfoMiao/zcf
Created
1 years ago
Last Updated
1 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category