LevelDB project 1 10225501460 林子骥 10211900416 郭夏辉
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.4 KiB

1 month ago
  1. # How to contribute #
  2. We'd love to accept your patches and contributions to this project. There are
  3. a just a few small guidelines you need to follow.
  4. ## Contributor License Agreement ##
  5. Contributions to any Google project must be accompanied by a Contributor
  6. License Agreement. This is not a copyright **assignment**, it simply gives
  7. Google permission to use and redistribute your contributions as part of the
  8. project.
  9. * If you are an individual writing original source code and you're sure you
  10. own the intellectual property, then you'll need to sign an [individual
  11. CLA][].
  12. * If you work for a company that wants to allow you to contribute your work,
  13. then you'll need to sign a [corporate CLA][].
  14. You generally only need to submit a CLA once, so if you've already submitted
  15. one (even if it was for a different project), you probably don't need to do it
  16. again.
  17. [individual CLA]: https://developers.google.com/open-source/cla/individual
  18. [corporate CLA]: https://developers.google.com/open-source/cla/corporate
  19. Once your CLA is submitted (or if you already submitted one for
  20. another Google project), make a commit adding yourself to the
  21. [AUTHORS][] and [CONTRIBUTORS][] files. This commit can be part
  22. of your first [pull request][].
  23. [AUTHORS]: AUTHORS
  24. [CONTRIBUTORS]: CONTRIBUTORS
  25. ## Submitting a patch ##
  26. 1. It's generally best to start by opening a new issue describing the bug or
  27. feature you're intending to fix. Even if you think it's relatively minor,
  28. it's helpful to know what people are working on. Mention in the initial
  29. issue that you are planning to work on that bug or feature so that it can
  30. be assigned to you.
  31. 1. Follow the normal process of [forking][] the project, and setup a new
  32. branch to work in. It's important that each group of changes be done in
  33. separate branches in order to ensure that a pull request only includes the
  34. commits related to that bug or feature.
  35. 1. Do your best to have [well-formed commit messages][] for each change.
  36. This provides consistency throughout the project, and ensures that commit
  37. messages are able to be formatted properly by various git tools.
  38. 1. Finally, push the commits to your fork and submit a [pull request][].
  39. [forking]: https://help.github.com/articles/fork-a-repo
  40. [well-formed commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
  41. [pull request]: https://help.github.com/articles/creating-a-pull-request