[prompt-analysis] Copilot PR Prompt Analysis - February 17, 2026 #16286
Closed
Replies: 1 comment
-
|
This discussion was automatically closed because it expired on 2026-02-24T05:12:40.328Z.
|
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.
-
Executive Summary
Analysis Period: Last 30 days (1,000 PRs analyzed)
Overall Performance: 698 merged (69.9% success rate) | 300 closed | 2 open
Key Finding: Bug fix prompts dominate the dataset (76.4% of all PRs) and show strong performance with a 71.1% success rate. However, documentation prompts, while rare (0.7%), achieve the highest success rate at 85.7%.
Key Metrics
Success Rates by Prompt Category
Pattern Analysis
✅ Successful Prompt Characteristics
High Success Rate Categories:
Common Success Factors:
Most Common Keywords in Merged PRs:
test: 2,490 occurrencesadd: 743 occurrencesupdate: 641 occurrencescreate: 510 occurrencesfix: 466 occurrencesresolve: 268 occurrencesremove: 172 occurrencesimplement: 104 occurrencescorrect: 103 occurrencesbump: 84 occurrences❌ Closed PR Patterns
Lower Success Categories:
Characteristics of Closed PRs:
View Example Successful Prompts
Bug Fix Examples (71.1% success rate)
Example 1: PR #3784
The issue is in the
extractStepReferencesfunction inpkg/workflow/expression_extraction.go. Th...Example 2: PR #3782
Currently,
NewCompiler...Feature Examples (65.6% success rate)
Example 1: PR #3779
Currently, all steps use a default timeout, which can be problematic for long-running operatio...
Example 2: PR #3773
--validate-onlyor--checkflag to thegh aw compilecommand that:View Example Closed Prompts
Bug Fix Examples That Were Closed
Example 1: PR #3766
Current Issue:
When multiple workflow runs try to start the s...
Example 2: PR #3756
Problem:
The
Compilerstruct maintains an internal cache of parsed wo...Feature Examples That Were Closed
Example 1: PR #3768
Motivation:
Some...
Example 2: PR #3760
gh aw graphcommand that generates a visual dependency graph of workflow steps and jobs.Motivation:
For complex workflows with many custom jobs and step dependencies, i...
Key Insights
Based on the analysis of 1,000 Copilot-generated PRs:
Bug Fixes Dominate and Succeed: 764 PRs (76.4%) were bug fixes with a strong 71.1% success rate. The keyword "test" appears 2,490 times in merged PRs, suggesting successful bug fixes often include test updates.
Documentation Has Highest Success: Only 7 documentation PRs were created, but 85.7% were merged. This suggests clear, bounded documentation tasks are highly successful.
Feature Prompts Need More Specificity: Feature additions have a lower success rate (65.6%) and closed feature PRs had longer prompts (276.9 vs 256.6 words), suggesting verbosity without clarity doesn't help.
Action Verbs Matter: Top keywords in merged PRs are action-oriented: test (2,490), add (743), update (641), create (510), fix (466). These verbs appear consistently in successful prompts.
Test Coverage is Critical: The keyword "test" dominates both merged (2,490) and closed (893) PRs, but appears 2.8x more in merged PRs, indicating successful PRs often include comprehensive test coverage.
Recommendations
DO ✅:
Be Specific: Reference exact file paths, function names, or error messages
pkg/auth/validator.goline 42"Include Tests: Explicitly mention test requirements or updates
validator_test.go"Use Clear Action Verbs: Start with fix, add, update, create, implement
Provide Context: Include error messages, reproduction steps, or requirements
AVOID ❌:
Historical Trends
View 7-Day Trend Analysis
Trend:↗️ Success rate increased by 0.1 percentage points compared to the previous analysis.
Prompt Templates
Based on successful patterns, here are recommended templates:
Bug Fix Template (71.1% success rate)
Feature Addition Template (65.6% success rate)
Analysis Period: Last 30 days (rolling window)
Next Update: Daily automated analysis
Beta Was this translation helpful? Give feedback.
All reactions