Skip to content

Latest commit

 

History

History
127 lines (84 loc) · 4.51 KB

CONTRIBUTING.md

File metadata and controls

127 lines (84 loc) · 4.51 KB

Contributing to vIC

Community

Contributors and users are encouraged to collaborate using the following resources in addition to the GitHub issue tracker:

Getting started

First, fork the repository on GitHub to your personal account.

Note that GOPATH can be any directory, the example below uses $HOME/vic. Change $USER below to your github username if they are not the same.

export GOPATH=$HOME/vic
mkdir -p $GOPATH/src/github.com/vmware
cd $GOPATH/src/github.com/vmware
git clone git@github.com:vmware/vic.git
cd vic
git config push.default nothing # anything to avoid pushing to vmware/vic by default
git remote rename origin vmware
git remote add $USER git@github.com:$USER/vic.git
git fetch $USER

TODO: a few of the steps above will collapse to 'go get github.com/vmware/vic' when the repo is no longer private.

See the README for build instructions.

To update:

git fetch -a
git rebase vmware/master

Contribution flow

This is a rough outline of what a contributor's workflow looks like:

  • Create a topic branch from where you want to base your work.
  • Make commits of logical units.
  • Make sure your commit messages are in the proper format (see below).
  • Push your changes to a topic branch in your fork of the repository.
  • Submit a pull request to vmware/vic.
  • Your PR must receive at least one LGTM from a maintainer before merging.

Example:

git checkout -b my-new-feature vmware/master
git commit -a
git push $USER my-new-feature

Code style

The coding style suggested by the Golang community is used in vIC. See the style doc for details.

Try to limit column width to 120 characters for both code and markdown documents such as this one.

Format of the Commit Message

We follow the conventions on How to Write a Git Commit Message.

Be sure to include any related GitHub issue references in the commit message.

Reporting Bugs and Creating Issues

When opening a new issue, try to roughly follow the commit message format conventions above.

We use Zenhub for project management on top of GitHub issues. Once you have the Zenhub browser plugin installed, click on the Boards tab to open the Zenhub task board.

Our task board practices are as follows:

New Issues

The New Issues are triaged by the team at least once a week. We try to keep issues from staying in this pipeline for too long. After triaging and issue, it will likely be moved to the backlog or stay under New Issues for deferred discussion.

Backlog

Issues in Backlog are not a current focus. For example, they may be feature requests or ideas for a future version of your project.

When moving issues to the Backlog, add more information (like requirements and outlines) into each issue. It’s useful to get ideas out of your head, even if you will not be touching them for a while.

Prioritize issues by dragging and dropping their placement in the pipeline. Issues higher in the pipeline are higher priority; accordingly, they should contain all the information necessary to get started when the time comes. Low-priority issues should still contain at least a short description.

To Do

This is the team’s current focus and issues should be well-defined. This pipeline should contain the high-priority items for the current milestone. These issues must have an assignee, milestone, estimate and tags. Items are moved from this pipeline to In Progress when work has been started.

In Progress

This is the answer to, "What are you working on right now? Ideally, this pipeline will not contain more issues than members of the team; each team member should be working on one thing at a time.

This pipeline is a good candidate for WIP (work-in-progress) limits. WIP limits help ensure your work flows smoothly, and help bring to light any blockers or bottlenecks. Adjust WIP limits according to the size of your team.

Done

A "Done" issue normally means the feature or fix is in code review and/or awaiting further testing. We review these issues as a team before closing them.

Closed

This pipeline includes all closed issues, it can be filtered like the rest of the Board – by Label, Assignee or Milestone.

This pipeline is also interactive: dragging issues into this pipeline will close them, while dragging them out will re-open them.