Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.64 KB

CONTRIBUTING.md

File metadata and controls

31 lines (20 loc) · 1.64 KB

How to contribute

👍🎉 First off, thanks for taking the time to contribute! 🎉👍

Check out the Stellar Contribution Guide for details.

Style guides

Git Commit Messages

  • Use the present tense ("Add feature" not "Added feature")
  • Use the imperative mood ("Move cursor to..." not "Moves cursor to...")

Pull Requests

  • PR titles start with package name, ex. "horizon/ingest: fix...", or "all" when changes are broad, ex. "all: update...", or "doc" when changes are isolated to non-code documentation not limited to a single package.
  • PRs must update the CHANGELOG with a small description of the change
  • PRs are merged into master or release branch using squash merge
  • Carefully think about where your PR fits according to semver. Target it at master if it’s only a patch change, otherwise if it contains breaking change or significant feature additions, set the base branch to the next major or minor release.
  • Keep PR scope narrow. Expectation: 20 minutes to review max
  • Explicitly differentiate refactoring PRs and feature PRs. Refactoring PRs don’t change functionality. They usually touch a lot more code, and are reviewed in less detail. Avoid refactoring in feature PRs.

Go Style Guide

Go Coding conventions

  • Always document exported package elements: vars, consts, funcs, types, etc.
  • Tests are better than no tests.