Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Latest commit

 

History

History
58 lines (35 loc) · 2.27 KB

CONTRIBUTING.md

File metadata and controls

58 lines (35 loc) · 2.27 KB

Contributing

How to contribute to the AfterShip SDK for Go

There are many ways that you can contribute to the AfterShip SDK project:

  • Submit a bug
  • Submit a code fix for a bug
  • Submit additions or modifications to the documentation
  • Submit a feature request

All code submissions will be reviewed and tested by the team, and those that meet a high bar for both quality and design/roadmap appropriateness will be merged into the source. Be sure to follow the existing structure when adding new files/folders.

All code should be error-free when run through golint and go vet. We recommend setting up your editor to:

  • Run goimports on save
  • Run golint and go vet to check for errors

You can find information in editor support for Go tools here: https://github.com/golang/go/wiki/IDEsAndTextEditorPlugins

If you encounter any bugs with the library please file an issue in the Issues section of the project.

Things to keep in mind when contributing

Some guidance for when you make a contribution:

  • Add/update unit tests and code as required by your change
  • Make sure you run all the unit tests before you create a Pull Request.
  • Run end-to-end tests or simple sample code to make sure the lib works in an end-to-end scenario.

Big contributions

If your contribution is significantly big it is better to first check with the project developers in order to make sure the change aligns with the long term plans. This can be done simply by submitting a question via the GitHub Issues section.

Setting up your environment

Want to get started hacking on the code? Super! Follow these instructions to get up and running.

First, make sure you have the prerequisites installed and available on your $PATH:

Next, get the code:

  1. Fork this repo
  2. Clone your fork locally (git clone https://github.com/<youruser>/aftership-sdk-go.git)
  3. Open a terminal and move into your local copy (cd aftership-sdk-go)
  4. Run pre-commit install

Building

Run go build

Testing

Run make test