๐Ÿค 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 main or long-lived branches other than approved integration merges.


๐Ÿงช Pull Request Requirements

Your PR must satisfy the following before requesting review:

RequirementStatus
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.