Contributing¶
How to contribute code and documentation to AI for Investor. The full local-development, testing, and style guide lives in the root CONTRIBUTING.md.
Branch model (iteration 195)¶
| Branch | Role | Accepts |
|---|---|---|
dev | Daily integration | All regular PRs (feature/*, fix/*, docs/*, …) |
master | Release branch | Only release/vX.Y.Z promotion PRs and hotfix/master-* emergency PRs |
Regular changes must target dev. A PR into master from any other source branch is rejected by the PR Governance gate.
Fork and clone¶
- Fork the repository on GitHub.
- Clone your fork (replace
YOUR_USERNAMEwith your own username):
- Add the upstream remote and base your work on
dev:
git remote add upstream https://github.com/cloudQuant/backtrader_web.git
git fetch upstream
git checkout -b feature/your-feature upstream/dev
Open a pull request¶
- Push your branch and open a PR targeting
dev. - Follow
.github/PULL_REQUEST_TEMPLATE.md: ## Governance declaration: target-branch justification, risk level (auto-classified from changed paths; labels cannot lower it), and test evidence;masterhotfix PRs additionally declare a dev-backport plan; release promotion PRs additionally link the release checklist;- fill in the
i18n change manifestwhen locale files change (CI-verified). - Wait for maintainer review — passing automation is necessary but not sufficient; merging requires human approval.
Reporting issues¶
- Bugs: use the Bug Report form with minimal reproduction steps and environment details.
- Features: use the Feature Request form.
- Questions: ask in Discussions instead of opening a question issue.
Code of conduct¶
Be constructive and respectful; review feedback targets code, not people. Submitting a contribution licenses it under the MIT License.