Contributing to Mago
Thanks for considering a contribution. The steps below get you from a clean checkout to a pull request.
Getting started
-
Open an issue or comment on an existing one before starting on anything non-trivial. It is the easiest way to make sure your work lines up with the project's direction.
-
Fork the repository on GitHub and clone your fork:
git clone https://github.com/<your-username>/mago.git -
Install Rust and Just, then run
just buildto set up the project. Nix users can runnix developfirst and thenjust build. -
Create a branch:
git checkout -b feature/my-awesome-change -
Make your changes following the project's coding style.
-
Run the tests and linter:
just test just check -
Commit and push:
git commit -m "feat: add my awesome change" git push origin feature/my-awesome-change -
Open a pull request against the main repository.
Pull requests
Bug fixes should include a test that reproduces the bug. New features should include comprehensive coverage. By contributing, you agree that your contributions are licensed under the project's dual MIT / Apache-2.0 license.
To report a security issue, follow the steps in the security policy.