[prompt-analysis] Copilot PR Prompt Analysis - 2026-03-22 #22234
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Copilot PR Prompt Pattern Analysis. A newer discussion is available at Discussion #22379. |
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.
-
Summary
Analysis Period: Last 30 days (rolling window, up to 1,000 PRs from
copilot/*branches)Total PRs: 1,000 | Merged: 825 (83%) | Closed: 174 (17%) | Open: 1 (<1%)
The overall merge rate of 83% continues an upward trend from 79% a week ago — indicating improving prompt quality and workflow reliability in the
github/gh-awrepository.Prompt Categories and Success Rates
✅ Successful Prompt Patterns
Common characteristics in merged PRs (825 total):
pkg/workflow/compiler.go,actions/setup/js/*.cjs)## Changes,## What,## How,## Description)Example Successful Prompts
PR #22227 —
Add host.docker.internal networking guidance to playwright prompt→ MergedPR #22200 —
Debug: Daily Community Attribution Updater failure — jq null accumulator in closing refs index→ MergedPR #22197 —
Use compact GitHub references (#N) in community contributions section→ MergedPattern observed: Each successful prompt starts with a clear description of the problem, identifies the specific location in code, and explains the impact before describing the fix.
❌ Unsuccessful Prompt Patterns
Common characteristics in closed PRs (174 total):
Example Unsuccessful Prompts (Closed PRs)
PR #22205 —
Fix CRITICAL toolName shell injection in mcp_setup_generator.go→ ClosedPR #22194 —
Remove experimental tag on mcp-scripts→ ClosedPR #22171 —
fix(issue-monster): lower min-integrity to none so cookie-labeled issues are readable→ ClosedKey Insights
🚩 WIP prefix is a strong failure signal: PRs with
WIPin the title have only a 33% merge rate vs 85% for non-WIP. Copilot agents should only open PRs when work is complete, never as drafts or work-in-progress markers.📁 Structured body sections improve outcomes: PRs with
## Changes,## Description, or similar structured markdown sections have an 85% merge rate vs 76% for unstructured bodies — a 9-point improvement. Prompt templates with clear sections produce better results.🎯 File-specificity matters, but modestly: Prompts referencing specific files/packages achieve 83% merge rate vs 78% for vague prompts — every prompt should name the files to be changed.
Recommendations
## Problem,## Changes,## Why) — boosts merge rate by ~9 pointsWIPin PR titles — these are closed at 67% rate. Open PRs only when ready for review.Historical Trends (Last 7 Days)
Trend: Steady improvement over the past week, with merge rate rising from 79% → 83% (+4 points). At this pace, the repo is on track to exceed 85% merge rate within 2 weeks if current practices continue.
References:
Beta Was this translation helpful? Give feedback.
All reactions