[prompt-analysis] Copilot PR Prompt Analysis - 2025-12-04 #5509
Closed
Replies: 1 comment
-
|
⚓ Avast! This discussion be marked as outdated by Copilot PR Prompt Pattern Analysis. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🤖 Copilot PR Prompt Pattern Analysis - 2025-12-04
This analysis examined 1,000 Copilot-generated PRs from the last 30 days to identify patterns that correlate with successful merges versus closed PRs.
Executive Summary
Analysis Period: Last 30 days (Nov 4 - Dec 4, 2025)
Total PRs Analyzed: 1,000 | Merged: 786 (79.4%) | Closed: 204 (20.6%) | Open: 10
Key Finding: Successful prompts are 23% more detailed (average 476 words vs 387 words) and include more specific references to commands, tests, and GitHub actions.
Analysis Methodology
This analysis:
Success Rates by Category
Observations:
Prompt Analysis
✅ Successful Prompt Patterns
Common characteristics in merged PRs:
Top keywords in merged PRs:
copilot(888 occurrences)agent(649 occurrences)github(627 occurrences)coding(480 occurrences)https(432 occurrences)details(421 occurrences)workflow(368 occurrences)summary(355 occurrences)Most common action verbs:
fix(99),add(92),update(71)test(80),document(50),resolve(49)Example successful prompts:
Update - PR #5496
Prompt preview: The
TestActionPinSHAsMatchVersionTagstest was failing because the pinned SHA foractions/setup-java@v4no longer matched the tag's current commit.Changes
Updated SHA from
c5195efe...to `...Bug Fix - PR #5496
Prompt preview: The
TestActionPinSHAsMatchVersionTagstest was failing because the pinned SHA foractions/setup-java@v4no longer matched the tag's current commit.Changes
Updated SHA from
c5195efe...to `...Refactor - PR #5487
Prompt preview: The setup guide has been moved from the setup-agentic-workflows agent to a standalone
install.mdfile that users access via GitHub Copilot. The install script now provides instructions for completin...❌ Patterns in Closed PRs
Common characteristics in closed PRs:
Keywords appearing MORE in closed PRs:
Note: The absence of keywords more common in closed PRs suggests that successful prompts are differentiated by what they include, not what they avoid.
🎯 Key Insights
Overall success rate: 79.4% of completed PRs are merged
Successful prompts are 89 words longer (22.9% more detailed)
'update' prompts have highest success rate (81.0%)
'documentation' prompts have lowest success rate (78.4%)
Specificity wins: Merged PRs are 23% more detailed and include:
Context matters: Keywords like
command(+111%),update(+83%), andtest(+42%) appear significantly more in merged PRs, suggesting explicit technical context improves success📋 Recommendations
Based on the analysis of 1,000 PRs:
DO ✅
Be specific and detailed: Aim for 400+ words in your prompt
Include technical context:
Use clear action verbs:
fix,add,update,testFocus on updates and refactoring:
AVOID ❌
Vague or general descriptions:
Skipping issue/PR links:
Overly broad scope:
📊 Historical Trends
Trend Observation: Success rate remains stable around 79-81%, indicating consistent prompt quality across time periods.
💡 Example Prompt Template
Based on successful patterns, here's a recommended template:
This structure includes:
Generated by Copilot PR Prompt Analysis
Workflow Run: §19923564544
Data Source: 1,000 Copilot PRs from the last 30 days
Beta Was this translation helpful? Give feedback.
All reactions