Hi there! We are thrilled that you would like to contribute to Sarama. Contributions are always welcome, both reporting issues and submitting pull requests!
Please make sure to include any potentially useful information in the issue, so we can pinpoint the issue faster without going back and forth.
sarama.Logger
to a log.Logger instance to capture debug output. Please include it in your issue description.Also, please include the following information about your environment, so we can help you faster:
Contributions to this project are released to the public under the project's opensource license. By contributing to this project you agree to the Developer Certificate of Origin (DCO). The DCO was created by the Linux Kernel community and is a simple statement that you, as a contributor, wrote or otherwise have the legal right to contribute those changes.
Contributors must sign-off that they adhere to these requirements by adding a Signed-off-by
line to all commit messages with an email address that matches the commit author:
feat: this is my commit message
Signed-off-by: Random J Developer <random@developer.example.org>
Git even has a -s
command line option to append this automatically to your
commit message:
$ git commit -s -m 'This is my commit message'
Because this library is in production use by many people and applications, we code review all additions. To make the review process go as smooth as possible, please consider the following.
go fmt
command to format your code according to the standards. Even better, set up your editor to do this for you when saving._
. You can use errcheck to verify whether you have handled all errors.go test
with the -race
argument to test for race conditions.git checkout -b my-branch-name
Here are a few things you can do that will increase the likelihood of your pull request being accepted: