mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 01:39:51 +08:00
Move the join-the-team section to the top of CONTRIBUTING.md, add CONTRIBUTING_CN.md with a language switch in both files, and point the README contribution note at the recruiting section.
145 lines
5.8 KiB
Markdown
145 lines
5.8 KiB
Markdown
# Contributing to DeepTutor
|
||
|
||
**English** | [简体中文](CONTRIBUTING_CN.md)
|
||
|
||
Thanks for helping build DeepTutor! Code, docs, translations, bug reports and
|
||
answering other people's questions all count as contributions.
|
||
|
||
Community: [Discord](https://discord.gg/eRsjPgMU4t) ·
|
||
[Feishu](./Communication.md) · [WeChat](https://github.com/HKUDS/DeepTutor/issues/78) ·
|
||
[Discussions](https://github.com/HKUDS/DeepTutor/discussions) ·
|
||
[Roadmap](https://github.com/HKUDS/DeepTutor/issues/498)
|
||
|
||
- [Join the team](#join-the-team)
|
||
- [Where to start](#where-to-start)
|
||
- [Pull requests](#pull-requests)
|
||
- [Development setup](#development-setup)
|
||
|
||
---
|
||
|
||
## Join the team
|
||
|
||
**We're actively recruiting triagers and maintainers.** Everyone who
|
||
contributes is a contributor; people who help run the project take on one of
|
||
two roles:
|
||
|
||
| | Triager | Maintainer |
|
||
| --- | --- | --- |
|
||
| **GitHub permission** | Triage | Write |
|
||
| **Responsibilities** | Label and route new issues, reproduce bugs, ask for missing details, close duplicates and stale items, give PRs a first response, request reviews | Everything a triager does, plus review, approve and merge PRs into `dev` in the areas they know, and look after bugs in those areas |
|
||
| **Time** | A few hours a week | A few hours a week, with steady responses in their areas |
|
||
|
||
Releases, `main`, repository settings and secrets stay with the project lead.
|
||
|
||
### Rules for maintainers
|
||
|
||
- Merge only when CI is green and the PR has an approving review.
|
||
- Get another maintainer's approval for your own PRs. Typo and small docs
|
||
fixes are the exception.
|
||
- Changes to authentication, code execution, release workflows or signing
|
||
need the project lead's review.
|
||
- Be kind and specific in reviews, and follow the
|
||
[Code of Conduct](CODE_OF_CONDUCT.md).
|
||
|
||
### How to join
|
||
|
||
- **Triager:** you've been helping for a while, for example answering issues,
|
||
reproducing bugs, or getting a few PRs merged.
|
||
- **Maintainer:** you've been a triager, or you've landed several substantial
|
||
PRs in one area.
|
||
|
||
If that sounds like you, email
|
||
[bingxizhao39@gmail.com](mailto:bingxizhao39@gmail.com) with:
|
||
|
||
- Links to the PRs you've opened on DeepTutor
|
||
- Open source projects you maintain or have maintained
|
||
- How much time you can give DeepTutor
|
||
|
||
Maintainers may also invite people they've seen doing good work.
|
||
|
||
People who are inactive for three months move to emeritus and their
|
||
permissions are removed. They keep their place in the list below and are
|
||
welcome back any time.
|
||
|
||
### Current team
|
||
|
||
- **Project lead:** [@pancacake](https://github.com/pancacake)
|
||
- **Maintainers:** looking for volunteers
|
||
- **Triagers:** looking for volunteers
|
||
|
||
---
|
||
|
||
## Where to start
|
||
|
||
| You have | Do this |
|
||
| --- | --- |
|
||
| A bug | Open a [bug report](https://github.com/HKUDS/DeepTutor/issues/new?template=bug_report.yml) with steps to reproduce, your version and OS. Small, obvious fixes can go straight to a PR. |
|
||
| A feature or behavior change | Open a [feature request](https://github.com/HKUDS/DeepTutor/issues/new?template=feature_request.yml) first and wait for a maintainer to agree on the direction before writing code. |
|
||
| A docs or translation problem | Open a [docs issue](https://github.com/HKUDS/DeepTutor/issues/new?template=docs.yml) or send a PR. |
|
||
| A question or setup trouble | Ask in [Discussions](https://github.com/HKUDS/DeepTutor/discussions) or on [Discord](https://discord.gg/eRsjPgMU4t). |
|
||
| A security vulnerability | Report it privately through [GitHub security advisories](https://github.com/HKUDS/DeepTutor/security/advisories/new). Never open a public issue. |
|
||
|
||
Looking for something to work on? Try issues labeled
|
||
[`good first issue`](https://github.com/HKUDS/DeepTutor/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
|
||
or [`help wanted`](https://github.com/HKUDS/DeepTutor/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22),
|
||
and leave a comment so others know you're on it.
|
||
|
||
---
|
||
|
||
## Pull requests
|
||
|
||
**Target `dev`.** `main` only moves at a release, and PRs opened against it
|
||
are retargeted before review.
|
||
|
||
- **One change per PR.** Don't mix unrelated fixes, formatting or refactors.
|
||
- **Link the issue** with `Closes #123` or `Related to #123`.
|
||
- **Explain the problem and show evidence.** Say what was wrong and what
|
||
changed, then show it works: test output, a screenshot or recording for UI
|
||
changes, or logs.
|
||
- **Run the checks** that fit your change (see [Testing](docs-for-dev/TESTING.md)),
|
||
plus `pre-commit run --all-files`. CI runs the full suite.
|
||
- **Leave "Allow edits by maintainers" on** so we can push small fixes and get
|
||
your PR merged faster.
|
||
- **AI-assisted PRs are welcome.** No label needed, but you must understand
|
||
the code you submit and include evidence, like any other PR.
|
||
|
||
We usually don't accept:
|
||
|
||
- Refactor-only PRs, unless a maintainer asked for one.
|
||
- Large features that weren't discussed in an issue first.
|
||
- More than 20 open PRs from one author at a time. Finish some before opening more.
|
||
|
||
### Commit messages
|
||
|
||
```
|
||
<type>: <short description>
|
||
```
|
||
|
||
`feat` new feature · `fix` bug fix · `docs` documentation · `refactor` no
|
||
behavior change · `test` tests · `chore` build, tooling or dependencies
|
||
|
||
---
|
||
|
||
## Development setup
|
||
|
||
The [developer handbook](docs-for-dev/README.md) is the source of truth:
|
||
[Agent setup](docs-for-dev/AGENT_SETUP.md) for installation and configuration,
|
||
[Development](docs-for-dev/DEVELOPMENT.md) for the source workflow and
|
||
[Architecture](docs-for-dev/ARCHITECTURE.md) for where code lives. The short version
|
||
(Python 3.11–3.14, Node.js 22 LTS):
|
||
|
||
```bash
|
||
git clone https://github.com/<you>/DeepTutor.git && cd DeepTutor
|
||
git checkout dev
|
||
|
||
python -m pip install -r requirements/full.txt
|
||
python -m pip install -e . --no-deps
|
||
python scripts/install_extras.py dev
|
||
(cd web && npm ci --legacy-peer-deps)
|
||
|
||
pre-commit install
|
||
```
|
||
|
||
Then branch from `dev` (`git checkout -b fix/short-name`). Keep build outputs,
|
||
runtime data and `node_modules` out of Git.
|