[prompt-analysis] Copilot PR Prompt Analysis - 2025-11-23 #4588
Closed
Replies: 1 comment
-
|
This discussion was automatically closed because it was created by an agentic workflow more than 1 week ago. |
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-11-23
Executive Summary
Over the past 30 days, 1000 Copilot-generated PRs were analyzed to identify patterns that lead to successful merges versus closed PRs. The overall success rate is 77.4%, with 771 merged and 225 closed PRs.
Key finding: Successful prompts share common characteristics including specific file references, clear action verbs, and appropriate context. However, prompt length and category type show minimal impact on success rates, suggesting that clarity and specificity matter more than verbosity.
Full Analysis Report
Analysis Period & Dataset
Prompt Categories & Success Rates
Key Insight: All categories show similar success rates (75-79%), indicating that prompt type is less important than prompt quality.
Prompt Characteristics Analysis
✅ Successful (Merged) PRs
Average prompt length: 152.3 words
Top action verbs used:
Specificity indicators:
.js,.yml,.md)❌ Unsuccessful (Closed) PRs
Average prompt length: 151.5 words
Top action verbs used:
Specificity indicators:
📊 Comparison
Key Finding: Merged PRs are 9.6 percentage points more likely to reference specific files.
Example Prompts
✅ Successful Prompts (Merged)
1. PR #4575 — 406 words
This section details on the original issue you should resolve
(issue_title)[duplicate-code] Duplicate Code: Safe-Output Target Filtering in Reviewer/Label Scripts(/issue_title)
(issue_description)# 🔍 Duplicate Code Detected: Safe Output Target Filtering
Analysis of commit 102022d
**Assignee...
2. PR #4574 — 387 words
This section details on the original issue you should resolve
(issue_title)[duplicate-code] Duplicate Code: JSON/JSONL Parsing Fallback in Log Parsers(/issue_title)
(issue_description)# 🔍 Duplicate Code Detected: Log Parser JSON Fallback
Analysis of commit 102022d
Assignee:
@copilot#...
3. PR #4570 — 34 words
Remove dedicated step to generate patch.
❌ Unsuccessful Prompts (Closed)
1. PR #4548 — 14 words
2. PR #4532 — 4 words
3. PR #4529 — 26 words
See https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/coding-agent/extend-coding-agent-with-mcp
Historical Trends (Last 7 Days)
Trend Analysis: Success rate has remained stable around 77% over the past week, indicating consistent patterns in what makes PRs successful.
Key Insights & Patterns
🎯 What Makes Prompts Successful
💡 Surprising Findings
Recommendations
Based on 30 days of data analyzing 1,000 Copilot PRs:
✅ DO
Include specific file references when possible (
.js,.yml, etc.)Provide context with code snippets or function names
Use clear, imperative action verbs (update, add, fix, create)
Keep prompts focused and specific rather than verbose
❌ AVOID
Vague or general instructions without specific targets
Overly complex multi-step tasks without clear scope
Assuming length equals clarity
📝 Prompt Template (Based on Analysis)
Example: "Update the safe-outputs validation logic in
pkg/validator.jsto check for empty arrays. Currently it only validates null values, but empty arrays should also trigger warnings."Analysis based on 1,000 Copilot PRs from the last 30 days
Generated on 2025-11-23 at 09:09 UTC
Beta Was this translation helpful? Give feedback.
All reactions