Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 1.88 KB

CONTRIBUTING.md

File metadata and controls

65 lines (48 loc) · 1.88 KB

Contributing

We'd love your help making grafik the graph library in Go!

If you'd like to add new exported APIs, please open an issue describing your proposal — discussing API changes ahead of time makes pull request review much smoother. In your issue, pull request, and any other communications, please remember to treat your fellow contributors with respect! We take our code of conduct seriously.

Setup

Fork, then clone the repository:

mkdir -p $GOPATH/src/elite.fitm.kmutnb.ac.th
cd $GOPATH/src/elite.fitm.kmutnb.ac.th
git clone git@github.com:your_github_username/zap.git
cd zap
git remote add upstream https://github.com/fitm-elite/grafik.git
git fetch upstream

Make sure that the tests and the linters pass:

make test
make lint

Making Changes

Start by creating a new branch for your changes:

cd $GOPATH/src/elite.fitm.kmutnb.ac.th/grafik
git checkout master
git fetch upstream
git rebase upstream/master
git checkout -b cool_new_feature

Make your changes, then ensure that make lint and make test still pass. If you're satisfied with your changes, push them to your fork.

git push origin cool_new_feature

Then use the GitHub UI to open a pull request.

At this point, you're waiting on us to review your changes. We try to respond to issues and pull requests within a few business days, and we may suggest some improvements or alternatives. Once your changes are approved, one of the project maintainers will merge them.

We're much more likely to approve your changes if you:

  • Add tests for new functionality.
  • Write a good commit message.
  • Maintain backward compatibility.