Contributing to Seata
Use this guide to prepare a focused, reproducible contribution to Apache Seata™ (incubating). For a first contribution, start with the new contributor guide.
Reporting security issues
Report undisclosed vulnerabilities through the private security reporting process. Keep vulnerability details out of public issues and PRs until coordinated disclosure.
Reporting general issues
Search existing issues first, then use the issue chooser. Include the version, environment, expected and actual behavior, and a minimal reproduction. Remove passwords, tokens, personal information and private business data.
Use Q&A discussions for usage questions. Discuss substantial design changes on dev@seata.apache.org, and link the public discussion from the issue.
Code and doc contribution
Workspace preparation
Fork the target repository and clone your fork. The following example is for the Java repository; replace YOUR_GITHUB_ID before running it.
git clone https://github.com/YOUR_GITHUB_ID/incubator-seata.git
cd incubator-seata
git remote add upstream https://github.com/apache/incubator-seata.git
git fetch upstream
git switch -c your_awesome_patch upstream/2.x
Branch definition
The Java repository currently develops on 2.x; the website uses docusaurus. Check the target repository's contribution instructions before choosing a base. Coordinate backports with maintainers and open a separate PR for each target branch.
Build and validate
Follow BUILDING.md for the current development branch, or the instructions at the release tag you are working on. Run from the repository root:
./mvnw -version
./mvnw clean test
JDK selection affects the modules in the reactor. For a complete distribution, follow the separate JDK and packaging requirements in the build guide. A packaging command with -DskipTests does not execute tests.
For website changes, follow the website guide, including both language builds and browser checks.
Commit rules
Keep each commit focused on a coherent change. Use a concise subject explaining the behavior changed, and put motivation or important tradeoffs in the body. Follow the target repository's contribution and formatting conventions; avoid unrelated reformatting and generated files.
PR description
Open the PR against the intended upstream branch and complete its template. Include:
- The problem and a linked issue or design discussion.
- The resulting behavior and compatibility or upgrade implications.
- Validation commands, results and anything not tested.
- Required release-note or changelog updates, following the repository's instructions.
Push follow-up commits to the same branch. Address review comments with code, evidence or a clear explanation, then recheck the current commit's CI results.
Test case contribution
Add a regression test for a bug fix and relevant boundary or failure cases for changed behavior. The test coverage guide explains test boundaries, isolation and reporting. Prefer tests that would detect the defect over tests that merely repeat the implementation.
Engage to help anything
Reproduce reported problems, improve translations, answer questions or review a PR. These contributions do not require commit access.
Code style
Follow the conventions and formatter configuration in the module and target branch. Review your diff before pushing: preserve license notices, document public behavior, and remove debugging output and unrelated edits. Third-party code or media needs compatible licensing and appropriate attribution; discuss uncertain provenance before including it.