You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid marking PRs as "[WIP]" - this is the strongest predictor of failure:
32.7% of closed PRs had WIP in title
Only 4.2% of merged PRs had this marker
28.5 percentage point gap (largest observed)
Success Indicators
These patterns strongly correlate with merged PRs:
Pattern
Merged
Closed
Impact
Include Code Blocks
76.2%
64.9%
+11.3%
Write Long Prompts (200+ words)
84.6%
73.6%
+11.1%
Reference Specific Files
64.3%
58.7%
+5.6%
Mention Error Messages
35.1%
29.8%
+5.3%
Warning Signs
Pattern
Closed
Merged
Impact
Has [WIP] in Title
32.7%
4.2%
-28.5%
Medium-Length Body (50-200 words)
26.0%
15.1%
-10.8%
Prompt Quality Metrics
Merged PRs:
Average prompt length: 470 words
Has code references: 95.9%
Uses code blocks: 76.2%
Closed PRs:
Average prompt length: 433 words
Has code references: 85.1%
Uses code blocks: 64.9%
✅ Best Practices
Based on analysis of 1,000 PRs:
DO:
Include code blocks (76% of successful PRs)
Show current vs. expected behavior
Reference specific code patterns
Write detailed prompts (200+ words) (85% of successful PRs)
Explain context and motivation
Describe edge cases
Reference specific files (64% of successful PRs)
Use backticks: pkg/workflow/compiler.go
Mention function names
Mention error messages (35% of successful PRs)
Include stack traces
Show actual error output
Complete work before PR creation
Remove "[WIP]" markers
Only create when ready
AVOID:
Creating "[WIP]" PRs (-28.5% impact)
Vague medium-length prompts (-10.8% impact)
Missing code context (-11.3% impact)
Example: Successful Merged PR
§5726: Store safeinputs MCP server logs in artifact and add health endpoint
Why it succeeded:
✅ Detailed technical description
✅ Specific file and code references
✅ Clear problem and solution
Example: Closed PR Pattern
§5727: [WIP] Add health GET endpoint to MCP server [Contains WIP]
Issues:
❌ Marked as WIP
❌ Missing detailed context
💡 Recommended Prompt Template
## Problem[Describe issue with specific error messages or behavior]## Current Code```go// Paste relevant snippet
Proposed Solution
[Explain fix with file references like pkg/cli/command.go]
Expected Behavior
[Describe what should happen]
This structure correlates with the 79.7% success rate of merged PRs.
---
**References:**
- [§5726](https://github.com/githubnext/gh-aw/pull/5726)
- [§5724](https://github.com/githubnext/gh-aw/pull/5724)
- [§5712](https://github.com/githubnext/gh-aw/pull/5712)
_Analysis from 1,000 Copilot PRs · Run [§20001939600](https://github.com/githubnext/gh-aw/actions/runs/20001939600)_
> AI generated by [Copilot PR Prompt Pattern Analysis](https://github.com/githubnext/gh-aw/actions/runs/20001939600)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
🤖 Copilot PR Prompt Pattern Analysis
Analysis Period: Last 30 days (ending 2025-12-07)
Sample Size: 1,000 Copilot-generated PRs
Analyzing 1,000 Copilot PRs reveals that prompt quality significantly impacts success rates. The data shows PRs with detailed prompts and code context achieve 79.7% merge rates.
Key Statistics
Total PRs Analyzed: 1000
Overall Success Rate: 79.1%
Category Performance
All categories show similar success rates (79-82%), indicating how you describe the task matters more than what category it falls into:
Insight: Only 2.7 percentage points separate the highest and lowest categories.
🎯 Critical Success Patterns
The #1 Predictor: WIP Markers (-28.5%)
Avoid marking PRs as "[WIP]" - this is the strongest predictor of failure:
Success Indicators
These patterns strongly correlate with merged PRs:
Warning Signs
Prompt Quality Metrics
Merged PRs:
Closed PRs:
✅ Best Practices
Based on analysis of 1,000 PRs:
DO:
Include code blocks (76% of successful PRs)
Write detailed prompts (200+ words) (85% of successful PRs)
Reference specific files (64% of successful PRs)
pkg/workflow/compiler.goMention error messages (35% of successful PRs)
Complete work before PR creation
AVOID:
Example: Successful Merged PR
§5726: Store safeinputs MCP server logs in artifact and add health endpoint
Why it succeeded:
Example: Closed PR Pattern
§5727: [WIP] Add health GET endpoint to MCP server [Contains WIP]
Issues:
💡 Recommended Prompt Template
Proposed Solution
[Explain fix with file references like
pkg/cli/command.go]Expected Behavior
[Describe what should happen]
Beta Was this translation helpful? Give feedback.
All reactions