Create draft pull request
Creates a draft pull request with AI-generated content based on branch diffs.
/plugin marketplace add hnegishi/cc-prtools/plugin install cc-prtools@hnegishiFollow the instructions in the STEP sections below to create a draft pull request.
This command assumes the use of the gh command. If it's not available, use the GitHub MCP Server as an alternative.
Execute the following command to retrieve repository information ${owner}, ${repo} and the ${current branch}:
git remote -v && git status
Ask the user for the name of the ${base branch} from which to get the diff with the ${current branch}. Examples: develop, main, etc.
Execute the following command to get the diff between ${base branch} and ${current branch}:
git --no-pager diff ${base branch} ${current branch} -U1000
Based on the output from STEP3, create a draft pull request following the procedures and rules below.
create_pull_request, output the draft pull request content in markdown format to the chat.create_pull_request function./create-prCreate a new branch, commit changes, and submit a pull request with automatic commit splitting