# Contributing to wip Thanks for taking the time to contribute! Bug reports, feature requests, and pull requests are all welcome. ## Development setup ```bash git clone https://github.com/slidict/wip.git cd wip dotnet build wip.slnx --configuration Release ``` Development requires the **.NET 10 SDK**. Shared build settings, including the target framework, warnings policy, and project version, live in [`Directory.Build.props`](Directory.Build.props). `wip` itself talks to `wslc.exe`/`wslc`, but the test suite doesn't require WSLC — the resolution, build, and execution layers are all swappable, so you can develop and test on any platform. ## Running checks locally ```bash dotnet build wip.slnx --configuration Release dotnet test tests/Wip.Tests/Wip.Tests.csproj --configuration Release --no-build dotnet publish src/Wip.Cli/Wip.Cli.csproj --configuration Release --runtime win-x64 --output artifacts/win-x64 ``` These match the main CI build, unit/parity test, and Native AOT publish commands. CI runs the first two on Windows and Linux, and publishes the actual distribution target, `win-x64`, on Windows. Native AOT publishing may require the platform toolchain, but it is worth running before submitting changes that affect YAML or JSON loading because it reports trim and reflection problems that the managed test host cannot. There is a fourth check, which runs in CI rather than locally: [`tests/e2e`](tests/e2e/README.md) drives the published `wip.exe` through the whole lifecycle against real WSLC containers. It needs Windows with WSL2 and WSLC, so it runs as its own workflow on every pull request (plus weekly and on demand) rather than as part of the WSLC-free test run. You can also run it by hand on any machine that has WSLC — see that README. Much of the suite replays a corpus generated by the Ruby implementation this project replaced. If a change makes one of those expectations fail, that is a behaviour change: either it is a bug, or it is deliberate and the expectation should be updated in the same commit with a note saying why. See [tests/golden/README.md](tests/golden/README.md). ## Commit messages This project uses [Conventional Commits](https://www.conventionalcommits.org/). Format: `[optional scope]: ` Common types: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `chore`, `ci`. Examples: - `feat(cli): add doctor command` - `fix(config): accept positional path argument` - `ci: add push trigger for main` PR labels drive the release notes (`feat` → Features, `fix` → Fixes, everything else → Maintenance), so an accurate type matters even for small changes. ## Versioning `wip` follows [Semantic Versioning](https://semver.org/): - **patch** — bug fixes (`fix`) - **minor** — new commands or features (`feat`) - **major** — breaking changes [`Directory.Build.props`](Directory.Build.props) is the single source of truth for the version. Maintainers update it via the "Bump Version" GitHub Actions workflow; you don't need to bump it yourself in a PR. ## Pull requests 1. Fork the repository and create a branch from `main`. 2. Make your focused change, adding tests for new behavior. 3. Run the applicable checks above. 4. Open a PR describing what changed, why, and how you tested it. Small, focused PRs are easier to review than large ones — if a change grows a second unrelated concern, consider splitting it. ## Reporting issues When filing a bug, please include: - Your `wip.yml` (with secrets redacted) - The exact command you ran and its output (`WIP_DEBUG=1` output is especially helpful) - Your `wip doctor` output - OS/WSL/WSLC versions