Skip to content

Latest commit

 

History

History
105 lines (68 loc) · 3.48 KB

File metadata and controls

105 lines (68 loc) · 3.48 KB

Gittensor Contributor Guide

Getting Started

Before contributing, please:

  1. Read the README to understand the project goals
  2. Understand Miner and Validator interactions/design
  3. Check existing issues, PRs, and discussions to avoid duplicate work

Creating Issues

When opening an issue, use the appropriate template:

  • Bug Report - Report bugs or unexpected behavior. Include steps to reproduce, expected vs actual behavior, and environment details.
  • Feature Request - Suggest new features or improvements. Explain the motivation and proposed solution.
  • Blank Issue - For issues that don't fit the above templates.

For security vulnerabilities, do not create a public issue. Report them privately via GitHub Security Advisories.

Lifecycle of a Pull Request

1. Create Your Branch

  • Branch off of test and target test with your PR
  • Ensure there are no conflicts before submitting

2. Make Your Changes

  • Write clean, well-documented code

  • Follow existing code patterns and architecture

  • Update documentation if applicable

  • Update tests and create new tests if there are new functions or older testing is outdated

    NOTE: We do NOT accept PRs that are only testing changes/additions, they will need to be backed up with a good reason

  • Do NOT add comments that are over-explanatory, redundant

  • When making your changes, ask yourself: will this raise the value of the repository?

  • Ensure ALL tests pass, the PR will not be accepted if there are failing tests

3. Submit Pull Request

  1. Push your branch to the repository
  2. Open a PR targeting the test branch
  3. Use draft PRs for work-in-progress changes
  4. Fill out the PR template:
    • Summary: Clear description of changes
    • Related Issues: Link issues using Fixes #123 or Closes #456
    • Type of Change: Select bug fix, new feature, refactor, documentation, or other
    • Testing: Confirm tests added/updated and manual testing performed
    • Checklist: Verify code style, self-review, and documentation

4. Code Review

  • Assign anderdc and landyndev to your PR for review

PR Labels

Apply appropriate labels to help categorize and track your contribution:

  • bug - Bug fixes
  • feature - New feature additions
  • enhancement - Improvements to existing features
  • refactor - Code refactoring without functionality changes
  • documentation - Documentation updates

Code Standards

Quality Expectations

  • Follow repository conventions (commenting style, variable naming, etc.)
  • Use sensible helper functions to modularize code
  • Code that is drawn out or obviously unoptimized to artificially inflate line count will be rejected
  • Write clean, readable, maintainable code
  • Avoid modifying unrelated files
  • Avoid adding unnecessary dependencies
  • Ensure all tests pass

Branches

test

Purpose: Testing and staging for main

Restrictions:

  • Requires pull request
  • Requires tests to pass
  • Requires one approval from either @landyndev or @anderdc

main

Purpose: Production-ready code

Restrictions:

  • Only maintainers can update

License

By contributing to Gittensor, you agree that your contributions will be licensed under the project's license.


Thank you for contributing to Gittensor and helping advance open source software development!