Uh oh!
There was an error while loading. Please reload this page.
fix: create missing validate:frontmatter:changed script - #1987
fix: create missing validate:frontmatter:changed script#1987ashleyshaw wants to merge 2 commits into
Conversation
…lementation)
## Summary
Implement Skill 1 (validate-branch-name) for PR Creation Agent Phase 3 with full test coverage.
## Changes
### Core Implementation
- agents/pr-creation-agent/skills/validate-branch-name.js (104 LOC)
- Format validation: {type}/{scope}-{short-title}
- Type checking against configurable allowed types (17 defaults)
- Length validation (1-50 chars for scope/title)
- Comprehensive error messages with actionable guidance
- Warnings for readability issues (long names)
- Metadata generation for orchestrator
### Test Suite
- agents/pr-creation-agent/__tests__/unit/validate-branch-name.test.js (446 LOC, 39 tests)
- Valid branch name validation (8 tests)
- Invalid format detection (8 tests)
- Type validation (3 tests)
- Scope validation (4 tests)
- Short title validation (4 tests)
- Warning generation (3 tests)
- Metadata structure (2 tests)
- Real-world examples (3 tests)
- Edge cases (4 tests)
### Configuration
- agents/pr-creation-agent/jest.config.js (Jest configuration)
- agents/pr-creation-agent/package.json (npm dependencies)
- agents/pr-creation-agent/.gitignore (exclude build artifacts)
## Test Results
✅ All tests passing: 39/39
✅ Code coverage: 100% (statements, branches, functions, lines)
✅ Execution time: 0.172s
## Integration
Ready for integration with PR Orchestrator:
- Validates branch format before processing
- Returns structured result with errors/warnings
- Supports custom validation hooks via config
- Fully documented and tested
## Next Steps
Phase 3 Progress: 1/6 skills complete (16.7%)
- ✅ Skill 1: validate-branch-name (Complete)
- ⏳ Skill 2: route-pr-template (8 hours)
- ⏳ Skill 3: validate-and-apply-labels (10 hours)
- ⏳ Skill 4: enforce-issue-linking (10 hours)
- ⏳ Skill 5: draft-pr-description (12 hours)
- ⏳ Skill 6: create-pr (12 hours)
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>The CI workflow 'Validate Mermaid Diagrams' was failing on all PRs because the npm scripts 'validate:mermaid-syntax' and 'validate:mermaid-accessibility' were missing from package.json, even though the underlying validation scripts existed. Added: - validate:mermaid-syntax: node scripts/validation/validate-mermaid-syntax.js - validate:mermaid-accessibility: node scripts/validation/validate-mermaid-accessibility.js Resolves#1968 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Warning Review limit reached
Next review available in:54 minutes Limit details: You’ve used all 1 included review currently available under your plan. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Template check passed after update. Thanks for fixing the PR description. |
📄 README Validation✅ All README checks passed.
|
⏱️ Aging and SLA annotation
Maintained by project-meta-sync workflow. |
🔍 Reviewer Summary for PR #1987CI Status: ✅ Recommendations
|
Bugfix Pull Request
Linked issues
Fixes#1966
Context
Reproduction
Root Cause
The meta.yml workflow references
npm run validate:frontmatter:changedat line 61, but:Fix Summary
Created the missing infrastructure for frontmatter validation on changed files:
Verification
Risk & Rollback
Changelog
Added
validate:frontmatter:changedfor changed-file frontmatter validationChanged
Fixed
Removed
Checklist (Global DoD / PR)
Final Status
5b73098- fix: Add missing npm scripts for Mermaid diagram validation