๐ค Contributing Guidelines
November 26, 2025 ยท View on GitHub
Thank you for contributing to openapi-ui. This project has strict conventions to keep the codebase consistent, maintainable, and scalable.
Please read these rules carefully before opening a Pull Request.
๐ Branching Model
-
All new work MUST be submitted to the branch: ๐
feature/dev -
No direct commits to
mainor long-lived branches other than approved integration merges.
๐งช Pull Request Requirements
Your PR must satisfy the following before requesting review:
| Requirement | Status |
|---|---|
| Code style matches existing project patterns | โ Required |
npm run lint passes | โ Required |
npm run build passes | โ Required |
| No unused/commented code unless documented | โ Not allowed |
| No unrelated refactors mixed with feature work | โ Not allowed |
If any of these fail, your PR will be rejected without review.
๐งฑ Code Style & Structure
This codebase has a defined architecture โ follow it.
- Do not introduce new folder structures without prior approval.
- Do not reorganize global architecture in your PR.
- Keep naming, typing patterns, and formatting consistent.
- Avoid clever hacks โ clarity > smartness.
If you are unsure where something belongs, ask before coding.
๐งผ Commit & PR Standards
- Use meaningful commit messages (imperative tone).
- Avoid large, mixed commits โ keep changes logically grouped.
- PR title must summarize the purpose (not "fix", "update", or emoji spam).
Example PR title:
feat: add PodTerminal factory component with story and validation
๐ What Will Get Your PR Rejected Instantly
- โ Failing build or lint
- โ Console.logs or debug code left behind
- โ Rewriting large parts of architecture without RFC
- โ Adding tech stack changes without approval
- โ Opinionated style rewrites (Prettier wars are already won)
๐งญ Before Opening a PR Checklist
[ ] Code follows existing patterns & style
[ ] npm run lint passes
[ ] npm run build passes
[ ] No structural changes outside scope
[ ] PR title is clear, scoped, and meaningful
๐ฃ Reviews & Merging
- Reviewer may request structural changes โ respond respectfully.
- Large changes may require a design review before merge.
- Final decision authority: maintainers.
๐ก๏ธ TL;DR
Be consistent, follow project norms, no cowboy refactoring, no broken builds. If you're adding a factory component, Storybook or it doesn't exist.