fix: Enable workflow_dispatch for leaderboard update and regenerate data#299
Conversation
- Fix update job condition to run on workflow_dispatch (was only running on push) - Add generate-leaderboard-data.py to trigger paths for automatic regeneration - Regenerate leaderboard.json with correct HTTPS URLs (fixes broken links) Fixes ambient-code#298 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📈 Test Coverage Report
Coverage calculated from unit tests only |
AgentReady Code Review 🤖SummaryThis PR fixes a workflow trigger issue and regenerates leaderboard data with corrected URLs. The changes are focused and address a legitimate bug in the workflow dispatch handling. ✅ Positive Findings1. Clear Problem Definition
2. Minimal, Targeted Changes
3. Security Best Practices
🔍 AgentReady Attribute Analysis✅ Passing Attributes
|
| Attribute | Current | Change | New |
|---|---|---|---|
test_coverage |
37.0 | -5.0 | 32.0 |
inline_documentation |
75.0 | -2.0 | 73.0 |
pre_commit_hooks |
80.0 | -3.0 | 77.0 |
| Overall | 80.0 | -1.2 | 78.8 |
Estimated impact based on tier weights (Tier 1: 50%, Tier 2: 30%, Tier 3: 15%, Tier 4: 5%)
✅ Recommendation: APPROVE with Minor Suggestions
This PR successfully fixes the reported bug with minimal risk. The changes are well-scoped and maintain security best practices.
Before Merge:
- ✅ Run
actionlint .github/workflows/leaderboard.yml(per CLAUDE.md:536) - 📝 Add inline comment explaining dual-trigger logic (line 186)
- 🧪 Consider workflow integration test for future robustness
Post-Merge:
- Monitor first workflow_dispatch trigger to verify fix
- Consider URL validation in submission workflow (prevent future data inconsistencies)
Review conducted by Claude Sonnet 4.5 via AgentReady review-agentready skill
AgentReady Version: 2.28.0
|
🎉 This PR is included in version 2.28.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
Fix the ordering problem in updating the leaderboard data when there is a change to the leaderboard data generate python script in addition to the new submissions.
Type of Change
Related Issues
Fixes #298
Changes Made
Testing
pytest)Checklist