diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..cba0df6 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,6 @@ +## What changed + +## How I checked it + +- [ ] Ran the checks in CONTRIBUTING.md +- [ ] Added or updated tests if behavior changed diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..3200486 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,32 @@ +# Contributing to react-query-helper + +Bug reports, fixes, docs and small features are welcome. + +## Before you start + +Small fixes need no issue. For a larger change, open an issue or a draft pull request first so we can agree on the approach before you spend time on it. + +## Set up + +Use Node.js 22 or newer. + +```bash +git clone https://github.com//react-query-helper.git +cd react-query-helper +npm ci +``` + +## Check your change + +Run the same checks the pull request runs: + +```bash +npm ci +npm test +``` + +## Open a pull request + +- Branch from `main` and keep one topic per pull request. +- Say what changed and how you checked it. Add or update tests when behavior changes. +- Pull requests run the checks above and a short public-text check (no secrets or personal paths in added lines). A maintainer reviews and merges.