Contribution Guidelines
5/14/25About 2 minCommunity and ContributionPRBug
Sponge is an open-source project, and your contributions are very welcome! Whether submitting bug reports, improving documentation, fixing bugs, or contributing new features, your participation will make sponge better. Please follow these guidelines:
Reporting Bugs
If you encounter a bug while using sponge, please submit it via GitHub Issues. A good bug report should include the following information:
- The version of the sponge framework you are using.
- Your Go version and operating system.
- Detailed steps to reproduce the bug.
- What was the expected result?
- What actually happened?
- Relevant error logs or stack trace information (please format using code blocks).
- If possible, provide a minimal reproducible example project.
Before submitting, please search the existing Issues to see if someone has already reported a similar problem.
Submitting Pull Requests
The process for contributing code is as follows:
- Fork the sponge repository to your GitHub account.
- Clone your Fork locally.
- Create a new feature branch (
git checkout -b feature/your-feature-name
orbugfix/your-bugfix-name
). - Write code on the new branch. Please ensure your code style conforms to project standards, execute the command
make ci-lint
to check code style. - Write corresponding test cases and ensure all tests pass (
go test ./...
). - Commit your changes (
git commit -m "feat: add new feature"
orfix: fix bug #XYZ"
). Please use clear Commit messages. - Push your local branch to your Forked repository (
git push origin feature/your-feature-name
). - Open your Forked repository page on GitHub and create a Pull Request (PR) to the
main
(ordevelop
, depending on the project's branching strategy) branch of the main repository. - Clearly describe your changes in the PR description, explaining what problem is solved or what feature is added. If the PR is related to an Issue, mention it in the description (e.g., "Fixes #XYZ" or "Resolves #XYZ").
- Maintainers will review your PR and may suggest modifications. Please cooperate actively to complete the changes.
Development Process
The development process is as follows:
- Find the issue you want to solve or the new feature you want to propose in GitHub Issues. If you are proposing a new feature, please first discuss its feasibility via WeChat, Issues, or Discussions.
- Communicate with project maintainers to ensure your proposal aligns with the project direction.
- Follow the steps in
Submitting Pull Requests
for code development, testing, and submission. - Participate in the PR review process and refine the code.
- Once your PR is approved and merged, your contribution is officially part of the project!