Add developer contribution guidelines

This commit is contained in:
Harshavardhana
2015-01-18 15:43:31 -08:00
parent 6160287182
commit 94b28bd7b6
3 changed files with 38 additions and 4 deletions
+30
View File
@@ -0,0 +1,30 @@
### Setup your mc Github Repository
Fork [mc upstream](https://github.com/minio-io/mc/fork) source repository to your own personal repository.
```sh
$ git clone https://github.com/$USER_ID/mc
$ cd mc
$ mkdir -p ${GOPATH}/src/github.com/minio-io
$ ln -s ${PWD} $GOPATH/src/github.com/minio-io/
$ make
```
### Developer Guidelines
``mc`` community welcomes your contribution. To make the process as seamless as possible, we ask for the following:
* Go ahead and fork the project and make your changes. We encourage pull requests to discuss code changes.
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
* If you have additional dependencies for ``mc``, ``mc`` manages its depedencies using [godep](https://github.com/tools/godep)
- Run `go get foo/bar`
- Edit your code to import foo/bar
- Run `make save` from top-level directory (or `godep restore && godep save ./...`).
* When you're ready to create a pull request, be sure to:
- Have test cases for the new code. If you have questions about how to do it, please ask in your pull request.
- Run `go fmt`
- Squash your commits into a single commit. `git rebase -i`. It's okay to force update your pull request.
- Make sure `go test -race ./...` and `go build` completes.
* Read [Effective Go](https://github.com/golang/go/wiki/CodeReviewComments) article from Golang project
- `mc` project is strictly conformant with Golang style
- if you happen to observe offending code, please feel free to send a pull request
+5 -1
View File
@@ -28,4 +28,8 @@ COMMANDS:
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```
```
# Contribute
[Contribute to mc](./CONTRIBUTING.md)
+3 -3
View File
@@ -25,9 +25,9 @@ import (
func main() {
app := cli.NewApp()
app.Name = "mc"
app.Usage = "unified command line interface for Minio Object Storage"
app.Version = "0.0.1"
app.Usage = "Unified command line interface for Minio Object Storage"
app.Version = "0.1.0"
app.Commands = Options
app.Author = "Minio"
app.Author = "Minio Community"
app.Run(os.Args)
}