Skip to content

Contributing

Contribution expectations for working inside the NestForge workspace.

NestForge expects contributors to keep changes scoped, documented, and validated. The current repository guidance emphasizes:

  • small, focused changes
  • tests with behavior changes
  • docs updates for public API or CLI changes
  • conventional commits for accurate release notes

If you are working on the NestForge framework repository itself, start by cloning and validating the workspace:

Terminal window
git clone https://github.com/vernonthedev/nestforge.git
cd nestforge
cargo check --workspace

That verifies the workspace and examples type-check together from a clean machine.

Depending on the area you are changing, you may also need:

  • protoc for gRPC-related work
  • a reachable database for database-backed examples or tests

From the repository root, the important commands are:

Terminal window
cargo check
cargo build --workspace
cargo test --workspace
cargo fmt --all
cargo clippy --workspace --all-targets -- -D warnings

Use Conventional Commits such as:

  • feat:
  • fix:
  • docs:
  • refactor:
  • chore:

Scopes are encouraged when they improve clarity:

  • feat(core): add request extractor
  • fix(cli): support nested module generation

If you change:

  • public API behavior
  • CLI behavior
  • generated app structure
  • example behavior

then update docs and examples in the same workstream.

Before opening a PR:

  • confirm the code lives in the correct crate
  • verify examples still reflect the intended user flow
  • keep public re-exports intentional
  • avoid unrelated refactors in the same commit series