mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Doc comments attached to their declaration are allowed; inline and explanatory comments are still prohibited. AGENTS.md, CONTRIBUTING.md and the PR checklist now state the same rule.
3.3 KiB
3.3 KiB
Contributing to OpenCode Manager
Thanks for your interest in contributing! This guide covers our workflow and how to get started.
Getting Started
- Fork the repository
- Clone your fork locally
See the Development Setup Guide for detailed setup instructions.
Project Board Workflow
We use a GitHub Project board to coordinate work and avoid duplicate effort.
Claiming an Issue
- Check the project board to see what's already in progress
- Find an issue you'd like to work on from the Todo column
- Comment on the issue: "I'd like to work on this"
- A maintainer will assign you and move it to In Progress
- Fork the repo and start working
Status Columns
| Column | Meaning |
|---|---|
| Todo | Ready to be picked up |
| In Progress | Someone is actively working on it |
| In Review | PR is open and awaiting review |
| Done | Merged and complete |
Themes
Each item is tagged with a theme to help you find work in your area of interest:
| Theme | Description |
|---|---|
| UI Polish | User interface improvements |
| Auth | Authentication and security features |
| Git/VCS | Version control features |
| Agent | AI agent capabilities |
| Infrastructure | Deployment and environment setup |
| STT | Speech-to-text features |
| Cost/Analytics | Usage tracking and analytics |
Development Guidelines
Code Style
- Doc comments only (JSDoc/TSDoc on the declaration they document); no inline or explanatory comments
- Strict TypeScript with proper typing
- Named imports only
- DRY principles - check for existing patterns before adding new ones
- Functions should be single-responsibility and reusable
Backend (Bun + Hono)
- Hono framework with Zod validation
- Bun SQLite (bun:sqlite) for database
- Proper error handling with try/catch
- Use async/await consistently
Frontend (React + Vite)
- Use
@/alias for component imports - Radix UI + Tailwind CSS for styling
- React Query for state management
- React Hook Form + Zod for forms
Running Tests
pnpm test # Run CLI, backend, and frontend tests
cd backend && pnpm exec vitest run <filename> # Run single test file
cd backend && bun test <filename> # Run a Bun-only suite (test/routes/internal-sandbox.test.ts, src/routes/repos.test.ts)
Linting and Type Checking
pnpm lint # Lint CLI, frontend, and backend
pnpm typecheck # Type-check CLI, frontend, and backend
Run linting and type checking before submitting a PR.
Commit Messages
Use type(scope): brief description, where the scope is optional, for example feat(schedules): add workspace modes or fix(proxy): harden remote terminal WebSocket bridging.
Submitting Changes
- Create a feature branch from
main - Make your changes with clear, focused commits
- Run tests, linting, and type checking
- Open a PR and link it to your issue (use "Closes #123" in the PR description)
- A maintainer will move the item to In Review
- Address review feedback
- Once merged, the item moves to Done
Questions?
Open an issue or discussion on GitHub if you have questions or ideas.