Follow these steps to make a contribution to any of CF open source repositories:
-
Fork the repository
-
Update submodules (
git submodule update --init
) -
Create a feature branch (
git checkout -b better_bosh
)- Run the tests to ensure that your local environment is working
bundle && bundle exec rake
(this may take a while)
- Run the tests to ensure that your local environment is working
-
Make changes on the branch:
- Adding a feature
- Add tests for the new feature
- Make the tests pass
- Fixing a bug
- Add a test/tests which exercises the bug
- Fix the bug, making the tests pass
- Refactoring existing functionality
- Change the implementation
- Ensure that tests still pass
- If you find yourself changing tests after a refactor, consider refactoring the tests first
- Adding a feature
See running tests to determine which test suite to run. We expect you to run the unit tests.
- Push to your fork (
git push origin better_bosh
) and submit a pull request selectingmaster
as the target branch
We favor pull requests with very small, single commits with a single purpose.
Your pull request is much more likely to be accepted if:
- Your pull request includes tests
- Your pull request is small and focused with a clear message that conveys the intent of your change.