Skip to content

Latest commit

History

History
42 lines (29 loc) 路 2.21 KB

File metadata and controls

42 lines (29 loc) 路 2.21 KB

How to contribute

馃憤馃帀 First off, thanks for taking the time to contribute! 馃帀馃憤

Check out the Stellar Contribution Guide that apply to all Stellar projects.

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...")

Issues

  • Issues and PR titles start with:
    • The package name most affected, ex. ingest: fix....
    • Or, for services and tools, the service most affected, ex. services/horizon: fix..., services/ticker: add...
    • Or, multiple package names separated by a comma when the fix addresses multiple packages worth noting, ex. services/horizon, services/friendbot: fix....
    • Or, all: when changes or an issue are broad, ex. all: update....
    • Or, doc: when changes or an issue are isolated to non-code documentation not limited to a single package.
  • Label issues with bug if they're clearly a bug.
  • Label issues with feature request if they're a feature request.

Pull Requests

  • PR titles follow the same rules as described in the Issues section above.
  • 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鈥檚 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鈥檛 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.