2024-01-03 15:22:03 +00:00
# Contributing to Elsa
2026-02-18 17:51:42 +00:00
Thank you for your interest in contributing to Elsa.
We value clarity, discipline, and maintainability in our codebase. Well-scoped pull requests and high-quality bug reports help us maintain velocity without sacrificing quality.
Whether you're:
2024-01-03 15:22:03 +00:00
- Reporting a bug
2026-02-18 17:51:42 +00:00
- Proposing a feature
2024-01-03 15:22:03 +00:00
- Submitting a fix
2026-02-18 17:51:42 +00:00
- Improving documentation
2024-01-03 15:22:03 +00:00
- Becoming a maintainer
2026-02-18 17:51:42 +00:00
— your contributions are welcome.
---
2024-01-03 15:22:03 +00:00
2026-02-18 17:51:42 +00:00
## Development Workflow
2024-01-03 15:22:03 +00:00
2026-02-18 17:51:42 +00:00
Elsa follows **Trunk Based Development** .
All changes happen through Pull Requests targeting the `main` branch.
1. Fork the repository and create your branch from `main` .
2024-01-03 15:22:03 +00:00
2. If you've added code that should be tested, add tests.
2026-02-18 17:51:42 +00:00
3. If you've changed APIs, update documentation.
2024-01-03 15:22:03 +00:00
4. Ensure the test suite passes.
2026-02-18 17:51:42 +00:00
5. Open a Pull Request.
---
## Pull Requests
We aim for PRs that are easy to review, easy to reason about, and safe to merge.
### 1) One PR = One Concern
Keep PRs focused on a single logical change:
- ✅ Bug fix
- ✅ Refactor (no behavior change)
- ✅ Formatting
- ✅ Dependency update
- ✅ Documentation change
- ❌ Mixing unrelated cleanups with functional changes
**Why:** Mixed concerns increase cognitive load, slow reviews, and increase merge risk.
2024-01-03 15:22:03 +00:00
2026-02-18 17:51:42 +00:00
If you notice cleanup opportunities while fixing a bug:
- Prefer a follow-up PR titled `refactor: ...` or `chore: ...`
- Or keep cleanup strictly limited to what is required for the fix
2024-01-03 15:22:03 +00:00
2026-02-18 17:51:42 +00:00
PRs that mix unrelated concerns may be asked to split before review continues.
2024-01-03 15:22:03 +00:00
2026-02-18 17:51:42 +00:00
---
2024-01-03 15:22:03 +00:00
2026-02-18 17:51:42 +00:00
### 2) Make Reviews Fast
2024-01-03 15:22:03 +00:00
2026-02-18 17:51:42 +00:00
A good PR includes:
2024-01-03 15:22:03 +00:00
2026-02-18 17:51:42 +00:00
- A clear problem statement
- Expected behavior
- Steps to reproduce (if applicable)
- Steps to verify the change
- Screenshots or video for UI changes (if applicable)
The easier your PR is to review, the faster it can be merged.
---
### 3) Prefer Small PRs
Smaller PRs are:
- Easier to review
- Less risky to merge
- More likely to receive timely feedback
If a change is large, consider splitting it into incremental PRs.
---
## Reporting Bugs
We use GitHub Issues to track bugs and feature requests.
When reporting a bug, please include:
- A clear summary
2024-01-03 15:22:03 +00:00
- Steps to reproduce
2026-02-18 17:51:42 +00:00
- Expected behavior
- Actual behavior
- Relevant logs or screenshots
- Sample code (if applicable)
Thorough bug reports significantly increase the chance of a fast and accurate resolution.
2024-01-03 15:22:03 +00:00
2026-02-18 17:51:42 +00:00
---
2024-01-03 15:22:03 +00:00
## License
2026-02-18 17:51:42 +00:00
By contributing, you agree that your contributions will be licensed under the project's MIT License.