1.7 KiB
1.7 KiB
Contributing
Thanks for working on PR Previews. This project is a self-hosted Gitea PR
preview service; the product behavior source of truth is SPEC.md.
Before You Change Code
- Read
AGENTS.mdfor repository-specific implementation rules. - Check
SPEC.mdwhen behavior is ambiguous. - Use
pnpm, not npm or yarn. - Keep Prisma commands pointed at
../prisma/schema.prismafrombackend/. - Do not commit generated secrets,
.envfiles, EC2 keys, tokens, or database dumps.
Development Setup
Start the database:
docker compose up -d pp-db
Apply migrations:
cd backend
pnpm migrate
Run the backend:
cd backend
pnpm install
pnpm dev
Run the frontend:
cd frontend
pnpm install
pnpm dev
Validation
There is no automated test runner in this repository yet. Before opening a PR, run the relevant builds:
cd backend
pnpm build
cd frontend
pnpm build
For behavior changes, also verify the running stack manually with a Gitea PR or with the narrowest API/UI flow that exercises the change.
Pull Request Guidelines
- Keep changes scoped to one behavior or cleanup.
- Explain user-visible behavior changes clearly.
- Include migration notes when changing
prisma/schema.prisma. - Preserve the existing security model: encrypted stored secrets, masked logs, constant-time webhook signature checks, and no secret values in API responses.
- Update
README.md,SPEC.md, orAGENTS.mdwhen the change affects setup, product behavior, or contributor workflow.
License
By contributing, you agree that your contributions are licensed under the Apache
License, Version 2.0. See LICENSE.