5 Star 15 Fork 1

Gitee 极速下载 / Badger

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/dgraph-io/badger
克隆/下载
CONTRIBUTING.md 2.66 KB
一键复制 编辑 原始数据 按行查看 历史
Eugene Kalinin 提交于 2020-07-09 15:35 . Add a contribution guide (#1379)

Contribution Guide

Before you get started

Code of Conduct

Please make sure to read and observe our Code of Conduct.

Your First Contribution

Find a good first topic

You can start by finding an existing issue with the good first issue or help wanted labels. These issues are well suited for new contributors.

Setting up your development environment

Badger uses Go Modules to manage dependencies. The version of Go should be 1.12 or above.

Fork the project

Clone the project

$ git clone https://github.com/$GITHUB_USER/badger
$ cd badger
$ git remote add upstream git@github.com:dgraph-io/badger.git

# Never push to the upstream master
git remote set-url --push upstream no_push

New branch for a new code

Get your local master up to date:

$ git fetch upstream
$ git checkout master
$ git rebase upstream/master

Create a new branch from the master:

$ git checkout -b my_new_feature

And now you can finally add your changes to project.

Test

Build and run all tests:

$ ./test.sh

Commit and push

Commit your changes:

$ git commit

When the changes are ready to review:

$ git push origin my_new_feature

Create a Pull Request

Just open https://github.com/$GITHUB_USER/badger/pull/new/my_new_feature and fill the PR description.

Sign the CLA

Click the Sign in with Github to agree button to sign the CLA. An example.

Get a code review

If your pull request (PR) is opened, it will be assigned to one or more reviewers. Those reviewers will do a code review.

To address review comments, you should commit the changes to the same branch of the PR on your fork.

Go
1
https://gitee.com/mirrors/Badger.git
git@gitee.com:mirrors/Badger.git
mirrors
Badger
Badger
main

搜索帮助