feat: add Codex package version enforcement#124
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds a codex package manifest, documentation for a versioned codex package, and a new GitHub Actions workflow that validates manifest name and semantic version bumps on PRs modifying Changes
Sequence DiagramsequenceDiagram
participant PR as "Pull Request"
participant GitHub as "GitHub Actions"
participant Git as "Git (repo)"
participant Validator as "Version Validator / Script"
participant Manifest as "platforms/codex/manifest.json"
PR->>GitHub: Open/Update PR
GitHub->>Git: Checkout PR ref and base
Git->>GitHub: Provide workspace
GitHub->>Git: Run git diff for platforms/codex/
alt codex changes present
GitHub->>Manifest: Read PR manifest.json
Manifest-->>Validator: name, version (PR)
GitHub->>Manifest: Read base manifest.json
Manifest-->>Validator: version (base) or none
Validator->>Validator: Validate name == "ralph-specum-codex"
Validator->>Validator: Validate semver formats
Validator->>Validator: Compare PR version > base version (if base exists)
alt validations pass
Validator-->>GitHub: Success (version check passed)
else validation fails
Validator-->>GitHub: Fail (error message)
end
else no codex changes
GitHub-->>GitHub: Skip validation
end
GitHub->>PR: Post status / output message
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Summary
platforms/codex/manifest.jsonplatforms/codex/**changesTesting
platforms/codex/manifest.jsonparses as JSONSummary by CodeRabbit
New Features
Documentation
Chores