Before contributing, please:
- Read the README to understand the project goals
- Understand Miner and Validator interactions/design
- Check existing issues, PRs, and discussions to avoid duplicate work
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.
- Branch off of
testand targettestwith your PR - Ensure there are no conflicts before submitting
-
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
- Push your branch to the repository
- Open a PR targeting the
testbranch - Use draft PRs for work-in-progress changes
- Fill out the PR template:
- Summary: Clear description of changes
- Related Issues: Link issues using
Fixes #123orCloses #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
- Assign
anderdcandlandyndevto your PR for review
Apply appropriate labels to help categorize and track your contribution:
bug- Bug fixesfeature- New feature additionsenhancement- Improvements to existing featuresrefactor- Code refactoring without functionality changesdocumentation- Documentation updates
- 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
Purpose: Testing and staging for main
Restrictions:
- Requires pull request
- Requires tests to pass
- Requires one approval from either
@landyndevor@anderdc
Purpose: Production-ready code
Restrictions:
- Only maintainers can update
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!