Thank you for your interest in contributing to PG Patrol! This guide will help you get started.
- Fork the repository on GitHub
- Clone your fork locally:
git clone https://github.com/YOUR_USERNAME/pg-patrol.git cd pg-patrol - Install dependencies:
npm install
- Create a branch for your work:
git checkout -b feature/my-feature
For detailed build instructions, see BUILD.md.
- Make your changes
- Run the test suite:
npm test - Build both targets to verify nothing is broken:
npm run build:chrome npm run build:firefox
- Commit your changes with a clear message
- Push to your fork and open a Pull Request
- TypeScript — strict mode enabled; avoid
anytypes - Testing — all new features and bug fixes should include tests
- Formatting — follow the existing code style in the repository
- Naming — use descriptive variable and function names
- All existing tests must pass before submitting a PR
- New features require unit tests at minimum
- Bug fixes should include a regression test
- Ensure your branch is up to date with
main - Fill out the PR template completely
- Link any related issues
- Wait for review — maintainers may request changes
- Use the provided issue templates for bugs, feature requests, and false positive reports
- Include as much detail as possible (browser, version, steps to reproduce)
This project follows the Contributor Covenant Code of Conduct. By participating, you agree to uphold this code.