Contributor's Guide
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:
🔹 1. Getting Started
Fork & Clone the Repository
Fork the repository on GitHub.
Clone your forked repository to your local machine:
git clone https://github.com/YOUR_USERNAME/REPOSITORY_NAME.git cd REPOSITORY_NAMESet the upstream remote to sync with the main repo:
git remote add upstream https://github.com/TrustlessWork/REPOSITORY_NAME.gitEnsure you're on the latest version of
develop:git checkout develop git pull upstream develop
🔹 2. Branching Strategy
We follow a structured branching model to keep contributions organized.
Main Branches
main→ The production-ready branch (DO NOT push here directly).develop→ The active development branch where features are merged.
Feature & Fix Branches
Create a branch based on the type of change:
Features:
feat/feature-nameExample:
feat/escrow-ui
Bug Fixes:
fix/bug-descriptionExample:
fix/api-response-error
Documentation:
docs/update-nameExample:
docs/getting-started-guide
Refactoring:
refactor/code-improvementExample:
refactor/clean-smart-contracts
Create a New Branch
Always create a new branch before making changes:
git checkout develop
git pull upstream develop # Sync with the latest code
git checkout -b feat/new-feature🔹 3. Making Contributions
Coding Standards
✅ 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.
Commit Message Guidelines
Use a clear and concise commit message format:
type: short description (less than 72 characters)Examples:
feat: add escrow approval systemfix: resolve API timeout issuedocs: update README with setup instructions
Types:
feat: New featurefix: Bug fixdocs: Documentation updaterefactor: Code restructuringstyle: Code formatting (no logic changes)test: Adding or updating testsbuild: Changes to build process or dependenciesci: Changes to CI/CD setupchore: Miscellaneous updates
🔹 4. Pushing Changes & Creating a PR
Push Your Changes
git add .
git commit -m "feat: add escrow approval system"
git push origin feat/new-featureCreate a Pull Request (PR)
Go to the original repo on GitHub.
Click New Pull Request.
Select
developas the base branch and your feature branch as the compare branch.Provide a clear description of the changes.
Submit for review!
🔹 5. Code Review & Merging Process
✅ 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.
🔹 6. Additional Resources
📖 Trustless Work GitHub – Browse our repositories. 💬 Join our Telegram – Connect with other contributors.
Happy coding! 🎉
Last updated
Was this helpful?