Welcome to the Trustless Work open-source community! π We appreciate your interest in contributing and helping us build Escrow Infrastructure for the New Economy. This guide will walk you through the process of contributing effectively.
Once assigned a task, please follow these guidelines:
Fork the repository on GitHub.
Clone your forked repository to your local machine:
Set the upstream remote to sync with the main repo:
Ensure you're on the latest version of develop:
We follow a structured branching model to keep contributions organized.
main β The production-ready branch (DO NOT push here directly).
develop β The active development branch where features are merged.
Create a branch based on the type of change:
Features: feat/feature-name
Example: feat/escrow-ui
Bug Fixes: fix/bug-description
Always create a new branch before making changes:
β Keep changes small and atomic. β Follow commit message guidelines (see below). β Ensure tests pass before submitting a PR. β Format code using our linting and formatting rules.
Use a clear and concise commit message format:
Examples:
feat: add escrow approval system
fix: resolve API timeout issue
docs: update README with setup instructions
Types:
feat: New feature
fix: Bug fix
docs: Documentation update
Go to the original repo on GitHub.
Click New Pull Request.
Select develop as the base branch and your feature branch as the compare branch.
β
Maintainers will review the PR and provide feedback.
β
If requested, make changes and push updates to your PR.
β
Once approved, the PR is merged into develop.
β
After testing, develop is merged into main for production.
π β Browse our repositories. π¬ β Connect with other contributors.
Happy coding! π
Example: fix/api-response-error
Documentation: docs/update-name
Example: docs/getting-started-guide
Refactoring: refactor/code-improvement
Example: refactor/clean-smart-contracts
refactor: Code restructuringstyle: Code formatting (no logic changes)
test: Adding or updating tests
build: Changes to build process or dependencies
ci: Changes to CI/CD setup
chore: Miscellaneous updates
Submit for review!
git clone https://github.com/YOUR_USERNAME/REPOSITORY_NAME.git
cd REPOSITORY_NAMEgit remote add upstream https://github.com/TrustlessWork/REPOSITORY_NAME.gitgit checkout develop
git pull upstream develop git checkout develop
git pull upstream develop # Sync with the latest code
git checkout -b feat/new-featuretype: short description (less than 72 characters) git add .
git commit -m "feat: add escrow approval system"
git push origin feat/new-feature