All pages
Powered by GitBook
1 of 1

Loading...

Contributor's Guide

We recently moved from Only Dust to GrantFox: https://www.grantfox.xyz/

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

  1. Fork the repository on GitHub.

  2. Clone your forked repository to your local machine:

  3. Set the upstream remote to sync with the main repo:

  4. Ensure you're on the latest version of 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-name

    • Example: feat/escrow-ui

  • Bug Fixes: fix/bug-description

Create a New Branch

Always create a new branch before making changes:


πŸ”Ή 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:

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


πŸ”Ή 4. Pushing Changes & Creating a PR

Push Your Changes

Create a Pull Request (PR)

  1. Go to the original repo on GitHub.

  2. Click New Pull Request.

  3. Select develop as the base branch and your feature branch as the compare branch.


πŸ”Ή 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

πŸ“– – 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 restructuring
  • style: 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

  • Provide a
    clear description
    of the changes.
  • Submit for review!

  • Trustless Work GitHub
    Join our Telegram
    git clone https://github.com/YOUR_USERNAME/REPOSITORY_NAME.git
    cd REPOSITORY_NAME
    git remote add upstream https://github.com/TrustlessWork/REPOSITORY_NAME.git
    git checkout develop
    git pull upstream develop
       git checkout develop
       git pull upstream develop  # Sync with the latest code
       git checkout -b feat/new-feature
    type: short description (less than 72 characters)
       git add .
       git commit -m "feat: add escrow approval system"
       git push origin feat/new-feature