Contributing
Guide for contributing to OpenCode Manager.
Getting Started
- Fork the repository
- Clone your fork
- Set up local development (see Local Setup)
- Create a feature branch
- Make changes
- Submit a pull request
Code Style
- No comments — code should be self-documenting
- No console.log — use proper logging
- Strict TypeScript — proper typing everywhere
- Named imports — no default imports
- DRY principles — don't repeat yourself
- SOLID design — follow SOLID principles
Pull Request Process
Before Submitting
- Run linting:
pnpm lint - Run tests:
pnpm test - Check types:
pnpm typecheck - Verify your changes work manually
Commit Messages
Format: type: brief description
Types:
feat- New featurefix- Bug fixdocs- Documentationrefactor- Code refactoringtest- Adding testschore- Maintenance
Examples:
feat: add file upload progress indicator
fix: resolve session expiry on mobile
docs: update installation guide
refactor: extract git service from routes