Welcome to TiDB Data Migration documentation! We are excited about the prospect of you joining TiDB Community.
You can start from any one of the following items to help improve TiDB Data Migration Docs at the PingCAP website:
- Fix typos or format (punctuation, space, indentation, code block, etc.)
- Fix or update inappropriate or outdated descriptions
- Add missing content (sentence, paragraph, or a new document)
- Translate docs changes from Chinese to English, or from English to Chinese.
- Submit, reply to, and resolve issues in the docs-dm repo
- (Advanced) Review Pull Requests created by others
Before you contribute, please take a quick look at some general information about TiDB Data Migration documentation maintenance. This can help you to become a contributor soon.
-
Diagram Style: Figma Quick Start Guide
To keep a consistent style for diagrams, we recommend using Figma to draw or design diagrams. If you need to draw a diagram, refer to the guide and use shapes or colors provided in the template.
Currently, we maintain the following versions of TiDB Data Migration documentation, each with a separate branch:
Branch name | Version description |
---|---|
master |
no updates are allowed since December 23, 2021 |
release-5.3 |
the latest 5.3 stable version |
release-2.0 |
the latest 2.0 stable version |
release-1.0 |
the latest 1.0 stable version |
Note:
Since December 23, 2021, the TiDB DM documentation in the master branch has been merged to TiDB documentation by #8042 and #7317. To create a PR for TiDB DM versions later than v5.3, either go to TiDB English documentation repository or Chinese documentation repository.
-
If your changes apply to only one docs version, just submit a PR to the corresponding version branch.
-
If your changes apply to multiple docs versions, you don't have to submit a PR to each branch. Instead, after you submit your PR, trigger the ti-chi-bot to submit a PR to other version branches by adding one or several of the following labels as needed. Once the current PR is merged, ti-chi-bot will start to work.
needs-cherry-pick-release-5.3
label: ti-chi-bot will submit a PR to therelease-5.3
branch.needs-cherry-pick-release-2.0
label: ti-chi-bot will submit a PR to therelease-2.0
branch.needs-cherry-pick-release-1.0
label: ti-chi-bot will submit a PR to therelease-1.0
branch.
-
If most of your changes apply to multiple docs versions but some differences exist among versions, you still can use cherry-pick labels to let ti-chi-bot create PRs to other versions. After the PR to another version is successfully submitted by ti-chi-bot, you can comment changes in that PR, and then the repo administrator will help to apply those comments.
Please perform the following steps to create your Pull Request to this repository. If don't like to use commands, you can also use GitHub Desktop, which is easier to get started.
Note:
This section takes creating a PR to the
master
branch as an example. Steps of creating PRs to other branches are similar.
Your Pull Requests can only be merged after you sign the Contributor License Agreement (CLA). Please make sure you sign the CLA before continuing.
- Visit the project: https://github.com/pingcap/docs-dm
- Click the Fork button on the top right and wait it to finish.
cd $working_dir # Comes to the directory that you want to put the fork in, for example, "cd ~/Documents/GitHub"
git clone [email protected]:$user/docs-dm.git # Replace "$user" with your GitHub ID
cd $working_dir/docs-dm
git remote add upstream [email protected]:pingcap/docs-dm.git # Adds the upstream repo
git remote -v # Confirms that your remote makes sense
-
Get your local master up-to-date with upstream/master.
cd $working_dir/docs-dm git fetch upstream git checkout master git rebase upstream/master
-
Create a new branch based on the master branch.
git checkout -b new-branch-name
Edit some file(s) on the new-branch-name
branch and save your changes. You can use editors like Visual Studio Code to open and edit .md
files.
git status # Checks the local status
git add <file> ... # Adds the file(s) you want to commit. If you want to commit all changes, you can directly use `git add.`
git commit -m "commit-message: update the xx"
See Commit Message Style.
# While on your new branch
git fetch upstream
git rebase upstream/master
git push -u origin new-branch-name # "-u" is used to track the remote branch from origin
- Visit your fork at https://github.com/$user/docs-dm (replace
$user
with your GitHub ID) - Click the
Compare & pull request
button next to yournew-branch-name
branch to create your PR. See Pull Request Title Style.
Now, your PR is successfully submitted! After this PR is merged, you will automatically become a contributor to TiDB Data Migration documentation.
Join the Slack channel: #sig-docs