This doc explains the development workflow so you can get started contributing to Grafeas!
First, you will need to setup your GitHub account and create a fork:
Once you have those, you can iterate on Grafeas:
When you're ready, you can create a PR!
The Go tools require that you clone the repository to the src/github.com/grafeas/grafeas
directory
in your GOPATH
.
To check out this repository:
- Create your own fork of this repo
- Clone it to your machine:
mkdir -p ${GOPATH}/src/github.com/grafeas
cd ${GOPATH}/src/github.com/grafeas
git clone [email protected]:${YOUR_GITHUB_USERNAME}/grafeas.git
cd grafeas
git remote add upstream [email protected]:grafeas/grafeas.git
git remote set-url --push upstream no_push
Adding the upstream
remote sets you up nicely for regularly syncing your
fork.
Grafeas has unit tests, which can be run with:
make test
$GOPATH
.
:warning: Some tests currently fail, see GH issue #237 for more details.
When you have changes you would like to propose to Grafeas, you will need to:
- Ensure the commit message(s) describe what issue you are fixing and how you are fixing it (include references to issue numbers if appropriate)
- Create a pull request
Each PR must be reviewed by a maintainer. You may be asked to meet with a member of the core Grafeas team to discuss the PR at high level, before they start the detailed review.