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.

преди 5 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # How to contribute
  2. We'd love to accept your patches and contributions to this project. There are
  3. just a few small guidelines you need to follow.
  4. ## Contributor License Agreement
  5. Contributions to this project must be accompanied by a Contributor License
  6. Agreement. You (or your employer) retain the copyright to your contribution,
  7. this simply gives us permission to use and redistribute your contributions as
  8. part of the project. Head over to <https://cla.developers.google.com/> to see
  9. your current agreements on file or to sign a new one.
  10. You generally only need to submit a CLA once, so if you've already submitted one
  11. (even if it was for a different project), you probably don't need to do it
  12. again.
  13. ## Code reviews
  14. All submissions, including submissions by project members, require review. We
  15. use GitHub pull requests for this purpose. Consult [GitHub Help] for more
  16. information on using pull requests.
  17. [GitHub Help]: https://help.github.com/articles/about-pull-requests/
  18. ## Instructions
  19. Fork the repo, checkout the upstream repo to your GOPATH by:
  20. ```
  21. $ go get -d go.opencensus.io
  22. ```
  23. Add your fork as an origin:
  24. ```
  25. cd $(go env GOPATH)/src/go.opencensus.io
  26. git remote add fork git@github.com:YOUR_GITHUB_USERNAME/opencensus-go.git
  27. ```
  28. Run tests:
  29. ```
  30. $ make install-tools # Only first time.
  31. $ make
  32. ```
  33. Checkout a new branch, make modifications and push the branch to your fork:
  34. ```
  35. $ git checkout -b feature
  36. # edit files
  37. $ git commit
  38. $ git push fork feature
  39. ```
  40. Open a pull request against the main opencensus-go repo.
  41. ## General Notes
  42. This project uses Appveyor and Travis for CI.
  43. The dependencies are managed with `go mod` if you work with the sources under your
  44. `$GOPATH` you need to set the environment variable `GO111MODULE=on`.