First of all, thank you for contributing to AppFlowy Cloud! The goal of this document is to provide everything you need to know in order to contribute to AppFlowy Cloud and its different integrations.
- You're familiar with GitHub and the Pull Request( PR) workflow.
- You know about the AppFlowy community. Please use this for help.
Contributions are welcome! Here's how you can help improve AppFlowy Cloud:
- Identify or propose enhancements or fixes by checking existing issues or creating a new one.
- Fork the repository to your own GitHub account. Feel free to discuss your contribution with a maintainer beforehand.
- Create a feature or bugfix branch in your forked repo.
- Familiarize yourself with the Development Workflow for guidelines on maintaining code quality.
- Implement your changes on the new branch.
- Open a Pull Request (PR)
against the
main
branch of the original AppFlowy Cloud repo. Await feedback or approval from the maintainers.
Before diving into development, familiarize yourself with the codebase and project standards by reviewing the Development Guide.
To start the server on your local machine, run the following script:
./script/run_local_server.sh
Verify that your changes work as expected by running the test suite:
cargo test
For a pull request to be accepted, it must satisfy the following criteria:
-
Pass All Tests: Your PR should not break any existing functionality and must pass all the automated tests.
-
Linting with Clippy: Your code must adhere to the linting standards enforced by
clippy
. You can check for linting issues using:cargo clippy -- -D warnings
If
clippy
isn't already installed:rustup update rustup component add clippy
-
Code Formatting: The code must comply with established formatting rules. Use the following commands for formatting and checking your code:
To format your code:
cargo fmt
To validate formatting:
cargo fmt --all -- --check