How To Contribute¶
Git Workflow¶
Setup¶
- Origin (your fork):
[email protected]:your-username/framework.git - Upstream (main repo):
[email protected]:zubzet/framework.git
Common Workflows¶
Update your local main branch from upstream¶
git fetch upstream
git checkout main
git merge upstream/main
Create and push a feature branch¶
git checkout -b feature/your-feature-name
# Make your changes...
git add .
git commit -m "Your commit message"
git push origin feature/your-feature-name
Create a Pull Request on GitHub¶
- Go to
https://github.com/zubzet/framework - Click "New Pull Request"
- Select
mainas base branch - Select your feature branch as compare branch
- Create PR and request reviews
Sync your fork with upstream¶
If main has changed while you're working on a feature branch:
git fetch upstream
git rebase upstream/main
git push origin feature/your-feature-name -f
Keep your main branch in sync¶
git checkout main
git fetch upstream
git merge upstream/main
git push origin main
Important Notes¶
- Always work on feature branches, never directly on main
- Keep your fork updated frequently to avoid conflicts
- Push to
origin(your fork), create PR toupstream(main repo)
Commit Messages¶
We previously used gitmoji for commits. From now on, we use Conventional Commits instead, to respond to feedback and align with standard practices.
Format:
<type>(<scope>): <short summary>
Examples:
- feat: add a query builder
- chore(dev): setup docker development environment
- test: migrate all qa-suite tests
Documentation¶
-
Clone the Repository
git clone https://github.com/zubzet/framework.git -
Start a Live Preview: Use the following Docker command to start a live preview of the documentation on port 8000:
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material -
Make Changes: Edit or add files under the /docs directory. Any changes will be automatically reflected in the live preview.
-
Submit a Pull Request: Once you’ve made your changes, push them to your fork and create a pull request to contribute your improvements.
Thank you for helping improve the ZubZet framework!