Make sure to check and fix code formatting issues before contributing:
-
Chaincode and Go SDK
Use
gofmt
to format your code andgolangci-lint
to check for code style issues. -
Java SDK
Run
mvn spotless:check
andmvn checkstyle:check
to check for code style issues andmvn spotless:apply
to reformat code. -
JavaScript SDK
Run
npm run format
andnpm run lint
to format code and fix obvious issues. Runnpm run format:check
andnpm run lint:check
to check for them.
We use SemVer for versioning. Any changes to the code base should not be released in an existing version.
The commit message should follow the Bluejava commit message format. The supported scopes are:
- chaincode for chaincode commits
- go for Go SDK-related commits
- java for Java SDK-related commits
- javascript for JavaScript SDK-related commits
- build for build scripts, CI, other development or deployment related commits
- use * or leave empty to refer to commits that do not have a clear scope
- Please review and accept our Code of Conduct.
- Fork this repository, make changes to it, and run the tests to see if anything is broken along the way.
- Submit a pull request to our repository. Please make sure you followed the instructions above.
- Our team will review the pull request on regularly. We will try our best to inform you of our questions about your pull request and any changes that need to be made before we can merge your pull request.
- We expect your response within two weeks, after which your pull request may be closed if no activity is shown.