mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
2.0 KiB
2.0 KiB
Contributing to OpenFrame
Thanks for taking the time to contribute. This guide covers setup, PR expectations, and required conventions.
Local setup
- Install dependencies.
bun install
- Copy environment variables.
cp .env.example .env
- Generate Prisma client.
bun run db:generate
- Run validation.
bun run check
Contribution workflow
- Fork and create a branch from
master. - Keep changes focused on one logical concern.
- Follow repository conventions in this file.
- Run required checks locally.
- Open a PR with a clear summary and checklist.
Branch naming
feature/<short-topic>fix/<short-topic>docs/<short-topic>refactor/<short-topic>chore/<short-topic>
Commit and PR title standard
Use Conventional Commits with this pattern:
type(scope): short summary
Required checks before opening a PR
- Run
bun run check. - If
prisma/schema.prismachanged, runbun run db:generate. - Ensure no unrelated file changes are included.
- Ensure no secrets or private keys are committed.
- Update docs when behavior changes.
Project conventions (must follow)
- Use Bun commands only.
- Server-side session reads must use
auth()from lib/auth.ts. - Access control should use
checkProjectAccess()/checkWorkspaceAccess(). - API responses should use
successResponse/apiErrorsfrom lib/api-response.ts. - In App Router dynamic routes, keep
paramstyped asPromise<...>and useawait params. - For multi-step DB writes, use Prisma transactions.
- Prefer backward-compatible API changes unless a breaking change is explicitly requested.
- Prefer
@/imports when available.
Security issues
Do not open public issues for vulnerabilities. Follow SECURITY.md.
Code of conduct
Follow CODE_OF_CONDUCT.md.
Need help?
If you are unsure where to start, open an issue with context and a proposed approach.