Path: blob/main/vendor/go.uber.org/zap/CONTRIBUTING.md
2872 views
Contributing
We'd love your help making zap the very best structured logging library in Go!
If you'd like to add new exported APIs, please open an issue describing your proposal — discussing API changes ahead of time makes pull request review much smoother. In your issue, pull request, and any other communications, please remember to treat your fellow contributors with respect! We take our code of conduct seriously.
Note that you'll need to sign Uber's Contributor License Agreement before we can accept any of your contributions. If necessary, a bot will remind you to accept the CLA when you open your pull request.
Setup
Fork, then clone the repository:
Make sure that the tests and the linters pass:
Making Changes
Start by creating a new branch for your changes:
Make your changes, then ensure that make lint and make test still pass. If you're satisfied with your changes, push them to your fork.
Then use the GitHub UI to open a pull request.
At this point, you're waiting on us to review your changes. We try to respond to issues and pull requests within a few business days, and we may suggest some improvements or alternatives. Once your changes are approved, one of the project maintainers will merge them.
We're much more likely to approve your changes if you:
Add tests for new functionality.
Write a good commit message.
Maintain backward compatibility.