From 1bb5bcce3cb2bbb6ad9bc896b27283efdc62b9a3 Mon Sep 17 00:00:00 2001 From: Bellabuks Date: Sat, 16 May 2026 08:13:03 +0100 Subject: [PATCH] docs: add CONTRIBUTING.md --- CONTRIBUTING.md | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..46a03d7 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,52 @@ +# Contributing to PayStream + +Thank you for contributing! + +## Go Module Workflow + +1. Fork the repository and clone your fork: + ```bash + git clone https://github.com/YOUR_USERNAME/paystream.git + cd paystream + git remote add upstream https://github.com/Breedar/paystream.git + ``` +2. Create a feature branch: + ```bash + git checkout -b feat/your-feature + ``` +3. Push your branch and open a pull request against `main`. + +## Running Tests + +```bash +# Build all Go packages +go build ./... + +# Run all Go tests +go test ./... +``` + +For the dashboard: +```bash +cd web/dashboard +pnpm install +pnpm typecheck +``` + +## Branch and Commit Conventions + +Branch names: `/` — e.g. `feat/webhook-retry`, `fix/ci-pnpm`. + +Commits follow [Conventional Commits](https://www.conventionalcommits.org/): + +``` +(): +``` + +Common types: `feat`, `fix`, `docs`, `chore`, `ci`, `refactor`, `test`. + +## Submitting a Pull Request + +- Keep each PR focused on a single concern. +- Ensure `go build ./...` and `go test ./...` pass before opening a PR. +- Reference the related issue with `closes #` in the PR description.