Instruction file imported from mi-examples/create-pp-dev (
.cursor/rules/create-pr.mdc). Copyright stays with the author.
description: Create PR message for merging current branch into target branch (default: origin/develop) alwaysApply: false
Create PR Workflow
When the user asks to Create PR (or "create pull request", "generate PR message"):
Steps
-
Determine target branch – Default is
origin/develop. If the user specifies a different branch in their message, use that instead. -
Get current branch – Run
git branch --show-currentto get the source branch. -
Get commit range – Compare current branch against target. Run:
git log origin/develop..HEAD --oneline(Replace
origin/developwith the target branch if changed.) -
Generate PR message – Create a markdown PR message following the project's PR format (see
pr-message-format.mdc). Include:- Title
- Summary of changes
- Key features/improvements
- Included commits
- Merge request line:
source-branch→target-branch
-
Save to file – Write the PR message to an MD file, e.g.
PR_MESSAGE.mdorpr-message.mdin the project root.
Example output file
## 🚀 feat: Add minimatch override for security
### 📋 Summary
...
**Merge Request:** `feature/xyz` → `origin/develop`