Thank you for your interest in contributing to Scriptorium! To ensure a structured development process, please follow these guidelines.
We use a branch-based workflow to maintain code quality.
- Always create a new branch for your feature or bugfix.
- Name your branch descriptively:
feature/add-json-logging
bugfix/fix-log-rotation
- All feature branches must be merged into
staging
. - Open a pull request (PR) from your feature branch to
staging
. - At least one approval is required before merging.
- The
main
branch only receives PRs fromstaging
. - PRs from feature branches directly to
main
are not allowed.
- Fork the repository and clone your fork:
git clone https://github.com/rodolfo-viana/scriptorium.git
cd scriptorium
- Set up the upstream repo (only needed once):
git remote add upstream https://github.com/rodolfo-viana/scriptorium.git
- Create a feature branch from staging:
git checkout staging
git pull origin staging
git checkout -b feature/my-awesome-feature
- Make changes, commit, and push:
git add .
git commit -m "Add awesome feature"
git push origin feature/my-awesome-feature
PS: Write meaningful commit message like feat: Add structured logging in JSON format
or fix: Resolve issue with async log rotation
.
- Open a PR to
staging
and request a review.
Before submitting a PR:
- Ensure all tests pass:
pytest -v --tb=short
If adding a new feature, write corresponding tests.
If you have questions, feel free to open an issue.
Happy coding!