From 9cea79dd37ec13e9885f1e2dc97fd0568128bf44 Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sat, 29 Nov 2025 17:53:36 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 12 +++++++++ README.md | 3 +++ commands/create-pull-request.md | 32 +++++++++++++++++++++++ plugin.lock.json | 45 +++++++++++++++++++++++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 commands/create-pull-request.md create mode 100644 plugin.lock.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..eff24b2 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "create-pull-request", + "description": "Provides comprehensive PR creation guidance with GitHub CLI, enforcing title conventions, following template structure, and offering concrete command examples with best practices.", + "version": "1.0.0", + "author": { + "name": "liam-hq", + "url": "https://github.com/liam-hq" + }, + "commands": [ + "./commands/" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..24255a4 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# create-pull-request + +Provides comprehensive PR creation guidance with GitHub CLI, enforcing title conventions, following template structure, and offering concrete command examples with best practices. diff --git a/commands/create-pull-request.md b/commands/create-pull-request.md new file mode 100644 index 0000000..73c9adc --- /dev/null +++ b/commands/create-pull-request.md @@ -0,0 +1,32 @@ +--- +description: Provides comprehensive PR creation guidance with GitHub CLI, enforcing title conventions, following template structure, and offering concrete command examples with best practices. +author: liam-hq +author-url: https://github.com/liam-hq +version: 1.0.0 +--- + +# GitHub CLI Pull Request Creation Guide + +This guide provides comprehensive instructions for creating pull requests using GitHub CLI. + +## Prerequisites +- Installing GitHub CLI +- Authenticating with GitHub + +## Key Features +- Detailed instructions for creating pull requests +- Best practices for PR titles and descriptions +- Example commands for PR management +- Tips for using templates +- Additional GitHub CLI PR commands + +## Example PR Creation Command +```bash +gh pr create --title "✨(scope): Your descriptive title" --body-file <(echo -e "## Issue\n\n- resolve:\n\n## Why is this change needed?\nYour description here.") --base main --draft +``` + +## Best Practices +- Use consistent template structure +- Follow conventional commit formats +- Maintain clear, structured pull request descriptions +- Include proper scope and descriptive titles \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..b46d929 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:ananddtyagi/claude-code-marketplace:plugins/create-pull-request", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "06b6b177bcb40c68d2c85619d31b94c51b6372dd", + "treeHash": "c82a2849bd3ea21f85dcca8ecafe14b5870bddd91e44b86cd161af2f24bc65fa", + "generatedAt": "2025-11-28T10:13:23.445712Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "create-pull-request", + "description": "Provides comprehensive PR creation guidance with GitHub CLI, enforcing title conventions, following template structure, and offering concrete command examples with best practices.", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "5d2451dc1194d990dc814e07ed803ba50eb95d54fa4e8c478339e912208b997a" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "c7080b36fdaf1fce7c44d9c476f574cbd3e51d42cfe9bbf0dc32982b7f370a92" + }, + { + "path": "commands/create-pull-request.md", + "sha256": "7cd89483509ee14d0c0c9ad6aebc3df34e0868b873c4922a96d2dae1be770408" + } + ], + "dirSha256": "c82a2849bd3ea21f85dcca8ecafe14b5870bddd91e44b86cd161af2f24bc65fa" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file