Skip to content

Contributing

Thank you for your interest in contributing to my-opencode-config! We welcome all developers to help make this project even better.

To get started, follow these steps:

  1. Clone the repository:

    Terminal window
    git clone https://github.com/your-repo/my-opencode-config.git
    cd my-opencode-config
  2. Install dependencies:

    Terminal window
    npm install
  3. Build the project:

    Terminal window
    npm run build
  4. Run the project (using npx or by linking it):

    Terminal window
    node dist/index.js

We follow a standard PR process:

  1. Create a branch: git checkout -b feature/your-feature-name
  2. Make your changes: Write clean, TypeScript-based code.
  3. Run tests: Ensure your changes pass existing tests (see below).
  4. Commit and push: git commit -m "Your commit message" and git push origin feature/your-feature-name
  5. Open a Pull Request: Describe your changes in detail.

We use Docker-based E2E tests for my-opencode-config to ensure isolation and consistency.

To run the E2E tests locally:

Terminal window
npm run test:e2e

The tests will:

  1. Build your project with npm run build.
  2. Create a Docker image using an Alpine-based Node.js environment.
  3. Execute a series of tests to verify configuration merging, model fetching, and plugin configuration.
  • Use TypeScript with strict mode enabled.
  • Follow existing patterns in the src/ directory.
  • Use CommonJS modules.
  • Maintain clean, descriptive comments when necessary.

If you have questions or need assistance, feel free to open an issue or reach out to the project maintainers.