-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
automationcode-qualitycookieIssue Monster Loves Cookies!Issue Monster Loves Cookies!enhancementNew feature or requestNew feature or requestmonitoringtask-mining
Description
Description
Create a new gh aw health command that displays workflow success/failure rates, execution trends, and health metrics over time. This enables proactive monitoring to catch degrading workflows before they become critical issues.
Current Behavior
- No centralized view of workflow health
- Must manually check each workflow's GitHub Actions page
- No historical trend analysis or anomaly detection
- Issues discovered reactively when workflows fail
Desired Behavior
gh aw healthshows summary of all workflows with success ratesgh aw health workflow-nameshows detailed metrics for specific workflow- Historical analysis: last 7/30/90 days
- Trend indicators (improving ↑, stable →, degrading ↓)
- Alerting when success rate drops below threshold (default 80%)
Files Affected
pkg/cli/health_command.go(new file)pkg/cli/health_metrics.go(new file)pkg/cli/flags.go(add health-related flags)
Suggested Changes
- Create health_command.go following CLI command patterns
- Implement summary view (all workflows)
- Implement detailed view (single workflow)
- Fetch workflow runs from GitHub API (7/30/90 days)
- Calculate success rate, failure rate, average duration
- Detect trends with visual indicators
- Add --threshold flag for alerting
- Support table and JSON output formats
Success Criteria
-
gh aw healthshows all workflow summaries -
gh aw health (workflow-name)shows detailed metrics - Historical analysis for 7/30/90 days works
- Trend detection implemented (↑→↓ indicators)
- --threshold flag highlights low success rates
- --json flag for programmatic consumption
- Unit tests and integration tests added
- Documentation in CLI reference
- Health monitoring guide created
Example Output
Workflow Health Summary (Last 7 Days)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Workflow Success Rate Trend Avg Duration
issue-monster.md 100% (50/50) ↑ 2m 30s
code-review.md 94% (47/50) → 3m 15s
dependency-update.md 78% (39/50) ↓ ⚠️ 5m 45s
⚠️ 1 workflow below 80% success threshold
ℹ Run 'gh aw health (workflow-name)' for details
Priority
High - Provides proactive visibility, prevents user-reported issues, critical for scaling 198+ workflows
Source
Extracted from Repository Quality Improvement Report - Workflow Health Monitoring #12540 - Task 2
AI generated by Discussion Task Miner - Code Quality Improvement Agent
- expires on Feb 12, 2026, 5:15 PM UTC
Copilot
Metadata
Metadata
Labels
automationcode-qualitycookieIssue Monster Loves Cookies!Issue Monster Loves Cookies!enhancementNew feature or requestNew feature or requestmonitoringtask-mining