You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CONTRIBUTING.md 3.1 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # How to contribute to `dora-rs`
  2. We welcome bug reports, feature requests, and pull requests!
  3. Please discuss non-trivial changes in a Github issue or on Discord first before implementing them.
  4. This way, we can avoid unnecessary work on both sides.
  5. ## Building
  6. The `dora` project is set up as a [cargo workspace](https://doc.rust-lang.org/cargo/reference/workspaces.html).
  7. You can use the standard `cargo check`, `cargo build`, `cargo run`, and `cargo test` commands.
  8. To run a command for a specific package only, pass e.g. `--package dora-daemon`.
  9. Running a command for the whole workspace is possible by passing `--workspace`.
  10. ## Continuous Integration (CI)
  11. We're using [GitHub Actions](https://github.com/features/actions) to run automated checks on all commits and pull requests.
  12. These checks ensure that our `main` branch always builds successfully and that it passes all tests.
  13. Please ensure that your pull request passes all checks.
  14. You don't need to fix warnings that are unrelated to your changes.
  15. Feel free to ask for help if you're unsure about a check failure.
  16. We're currently running the following kind of checks:
  17. - **CI / Test:** Ensures that the project builds and that all unit tests pass. This check is run on Linux, Windows, and macOS.
  18. - **CI / Examples:** Builds and runs the Rust, C, and C++ dataflows from the `examples` subdirectory. This check is run on Linux, Windows, and macOS.
  19. - **CI-python / Python Examples:** Builds and runs the Python dataflows from the `examples` subdirectory. This check is run on Linux only.
  20. - **github pages / deploy:** Generates our website from the `docs` subfolder.
  21. - **CI / CLI Test:** Runs some basic tests of the `dora` command-line application. This check is run on Linux, Windows, and macOS.
  22. - **CI / Clippy:** Runs the additional checks of the [`clippy`](https://github.com/rust-lang/rust-clippy) project.
  23. - **CI / Formatting:** Ensures that the code is formatted using `rustfmt` (see [below](#style))
  24. - **CI / License Checks:** Scans the dependency tree and tries to detect possible license incompatibilities.
  25. ## Issue Management
  26. ### Dora Bot
  27. We use a custom Github Action to help manage issue assignments. You can interact with this action using the following:
  28. - `@dora-bot assign me` - Assigns the current issue to you.
  29. - `@dora-bot unassign me` - Removes yourself from the issue assignment.
  30. For maintainers only:
  31. - `dora-bot unassign @username` - Allows maintainers to unassign other contributors
  32. Note: All issue assignments will be removed automatically after 2 weeks of inactivity.
  33. ## Style
  34. We use [`rustfmt`](https://github.com/rust-lang/rustfmt) with its default settings to format our code.
  35. Please run `cargo fmt --all` on your code before submitting a pull request.
  36. Our CI will run an automatic formatting check of your code.
  37. ## Publishing new Versions
  38. The maintainers are responsible for publishing new versions of the `dora` crates.
  39. Please don't open unsolicited pull requests to create new releases.
  40. Instead, request a new version by opening an issue or by leaving a comment on a merged PR.