Thanks for taking the time to contribute!
The following is a set of guidelines for contributing to Mercury and its packages, which are hosted in the Accenture Organization on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
This project and everyone participating in it is governed by our Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to Eric Law, who is the current project maintainer.
We follow the standard GitHub workflow. Before submitting a Pull Request:
- Please write tests.
- Make sure you run all tests and check for warnings (
cargo test --workspace,cargo clippy --workspace --all-targets,cargo fmt --all --check), and that the dependency lock is clean of RustSec advisories (cargo audit, installed withcargo install cargo-audit --locked); CI runs the same audit on every pull request and weekly. - Think about whether it makes sense to document the change in some way. For smaller, internal changes, inline documentation might be sufficient, while more visible ones might warrant a change to the design docs or the README.
- Update
CHANGELOG.mdfile with your current change in form of[Type of change e.g. platform-core, event-script, knowledge-graph, etc.]with a short description of what it is all about and a link to the issue or pull request, and choose a suitable section (i.e., changed, added, fixed, removed, deprecated).
When we make a significant decision in how to write code, or how to maintain the project and what we can or cannot support, we document it using Architecture Decision Records (ADR). Take a look at the architecture decisions for existing ADRs, the per-layer design docs, and the increment ledger (docs/INCREMENTS.md) for the rationale behind the port. If you have a question around how we do things, check to see if it is documented there. If it is not documented there, please ask us - chances are you're not the only one wondering. Of course, also feel free to challenge the decisions by starting a discussion.