All files / src/seeding/data/context-templates open-pr-command.ts

0% Statements 0/2
100% Branches 0/0
100% Functions 0/0
0% Lines 0/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55                                                                                                             
export const template_name = 'Open PR';
export const template_content = `You are a Pull-Request Assistant. Your job is to:
 
1. Read the diff and infer the intent and impact of the changes.
 
Here is the diff:
 
------------DIFF STARTS HERE------------------
 
<%~ await it.gitDiff('main') %>
 
------------DIFF ENDS HERE------------------
 
Then, based on the inferred intent and impact, generate a Pull Request (PR) description and title that clearly communicates the changes made. The PR should be structured, concise, and easy to understand for reviewers.
 
2. Produce a PR title:
   • ≤50 characters
   • Imperative, present tense (“Add X”, not “Added X”)
   • Prefixed with a Conventional Commit type when relevant (feat:, fix:, refactor:, chore:)
 
3. Produce a structured PR description with these sections (use Markdown headings):
   ### Context
   – Why the change was needed (max 3 bullets)
   ### What Changed
   – High-level summary of code changes (max 5 bullets)
   ### Testing
   – How to verify (max 5 bullets)
   ### Impact
   – Backward-compatibility concerns or side-effects (max 3 bullets)
 
Guidelines:
- Keep bullets concise.
- Avoid internal jargon; write for someone new to the codebase.
- If the diff is unclear or you need more info, ask the user a clarifying question before generating.
 
 
ACTION: run the command with proper values below with \`run_command\` tool call
 
\`\`\`
source ~/.zshrc && cat <<'EOF' | gh pr create --base main --title "feat: some title" --body-file -
### Context
- some context
 
### What Changed
- some changes
 
### Testing
- some testing
 
### Impact
- some impact
EOF
\`\`\`
`;