Contributing to Mangle

We are glad that you are interested in contributing…

The Mangle project team welcomes contributions from the community. We are always thrilled to receive pull requests, and do our best to process them as fast as we can. If you wish to contribute code and you have not signed our contributor license agreement (CLA), our bot will update the issue when you open a Pull Request. For any questions about the CLA process, please refer to our FAQ.

Before you start to code, we recommend discussing your plans through a Github issue or discuss it first with the official project maintainers via team chat, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

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

Example:

  1. git remote add upstream https://github.com/vmware/mangle.git
  2. git checkout -b my-new-feature master
  3. git commit -a
  4. git push origin my-new-feature

Staying In Sync With Upstream

When your branch gets out of sync with the vmware/master branch, use the following to update:

  1. git checkout my-new-feature
  2. git fetch -a
  3. git pull --rebase upstream master
  4. git push --force-with-lease origin my-new-feature

Updating pull requests

If your PR needs changes based on code review, you’ll most likely want to squash these changes into existing commits.

If your pull request contains a single commit or your changes are related to the most recent commit, you can simply amend the commit.

  1. git add .
  2. git commit --amend
  3. git push --force-with-lease origin my-new-feature

If you need to squash changes into an earlier commit, you can use:

  1. git add .
  2. git commit --fixup <commit>
  3. git rebase -i --autosquash master
  4. git push --force-with-lease origin my-new-feature

Be sure to add a comment to the PR indicating your new changes are ready to review, as GitHub does not generate a notification when you git push.

Code Style

Formatting Commit Messages

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. See GFM syntax for referencing issues and commits.

Reporting Bugs and Creating Issues

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

Repository Structure

  1. ├── assets/files
  2. ├── checkstyle
  3. ├── docker
  4. ├── docs
  5. ├── formatter
  6. ├── mangle-byteman-root
  7. ├── agent
  8. ├── bin
  9. ├── download
  10. ├── install
  11. ├── licenses
  12. submit
  13. README
  14. pom.xml
  15. ├── mangle-default-plugin
  16. ├── mangle-metric-reporter
  17. ├── mangle-models
  18. ├── mangle-services
  19. ├── mangle-support
  20. ├── mangle-task-framework
  21. ├── mangle-test-plugin
  22. ├── mangle-ui
  23. ├── mangle-utils
  24. ├── mangle-vcenter-adapter
  25. .gitbook.yaml
  26. .gitignore
  27. CONTRIBUTING.md
  28. LICENSE
  29. NOTICE
  30. pom.xml