-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] Replace markdownlint with mdformat for avoiding installing ruby (
#1936) * Use mdformat pre-commit hook * allows consecutive numbering * improve .mdformat.toml * test mdformat * format markdown * minor fix * fix codespecll * fix circleci * add linkify-it-py dependency for cicleci * add comments * replace flake8 url * add mdformat-myst dependency * remove mdformat-myst dependency * update contributing.md
- Loading branch information
Showing
41 changed files
with
1,377 additions
and
1,368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ about: Ask general questions to get help | |
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Checklist** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,10 @@ Pull requests let you tell others about changes you have pushed to a branch in a | |
|
||
#### 1. Get the most recent codebase | ||
|
||
+ When you work on your first PR | ||
- When you work on your first PR | ||
|
||
Fork the OpenMMLab repository: click the **fork** button at the top right corner of Github page | ||
![avatar](../_static/community/1.png) | ||
![avatar](../_static/community/1.png) | ||
|
||
Clone forked repository to local | ||
|
||
|
@@ -38,14 +38,14 @@ Pull requests let you tell others about changes you have pushed to a branch in a | |
git remote add upstream [email protected]:open-mmlab/mmcv | ||
``` | ||
|
||
+ After your first PR | ||
- After your first PR | ||
|
||
Checkout master branch of the local repository and pull the latest master branch of the source repository | ||
Checkout master branch of the local repository and pull the latest master branch of the source repository | ||
|
||
```bash | ||
git checkout master | ||
git pull upstream master | ||
``` | ||
```bash | ||
git checkout master | ||
git pull upstream master | ||
``` | ||
|
||
#### 2. Checkout a new branch from the master branch | ||
|
||
|
@@ -67,23 +67,23 @@ git commit -m 'messages' | |
|
||
#### 4. Push your changes to the forked repository and create a PR | ||
|
||
+ Push the branch to your forked remote repository | ||
- Push the branch to your forked remote repository | ||
|
||
```bash | ||
git push origin branchname | ||
``` | ||
```bash | ||
git push origin branchname | ||
``` | ||
|
||
+ Create a PR | ||
![avatar](../_static/community/2.png) | ||
- Create a PR | ||
![avatar](../_static/community/2.png) | ||
|
||
+ Revise PR message template to describe your motivation and modifications made in this PR. You can also link the related issue to the PR manually in the PR message (For more information, checkout the [official guidance](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)). | ||
- Revise PR message template to describe your motivation and modifications made in this PR. You can also link the related issue to the PR manually in the PR message (For more information, checkout the [official guidance](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)). | ||
|
||
#### 5. Discuss and review your code | ||
|
||
+ After creating a pull request, you can ask a specific person to review the changes you've proposed | ||
![avatar](../_static/community/3.png) | ||
- After creating a pull request, you can ask a specific person to review the changes you've proposed | ||
![avatar](../_static/community/3.png) | ||
|
||
+ Modify your codes according to reviewers' suggestions and then push your changes | ||
- Modify your codes according to reviewers' suggestions and then push your changes | ||
|
||
#### 6. Merge your branch to the master branch and delete the branch | ||
|
||
|
@@ -100,15 +100,15 @@ git push origin --delete branchname # delete remote branch | |
|
||
3. Accomplish a detailed change in one PR. Avoid large PR | ||
|
||
+ Bad: Support Faster R-CNN | ||
+ Acceptable: Add a box head to Faster R-CNN | ||
+ Good: Add a parameter to box head to support custom conv-layer number | ||
- Bad: Support Faster R-CNN | ||
- Acceptable: Add a box head to Faster R-CNN | ||
- Good: Add a parameter to box head to support custom conv-layer number | ||
|
||
4. Provide clear and significant commit message | ||
|
||
5. Provide clear and meaningful PR description | ||
|
||
+ Task name should be clarified in title. The general format is: [Prefix] Short description of the PR (Suffix) | ||
+ Prefix: add new feature [Feature], fix bug [Fix], related to documents [Docs], in developing [WIP] (which will not be reviewed temporarily) | ||
+ Introduce main changes, results and influences on other modules in short description | ||
+ Associate related issues and pull requests with a milestone | ||
- Task name should be clarified in title. The general format is: \[Prefix\] Short description of the PR (Suffix) | ||
- Prefix: add new feature \[Feature\], fix bug \[Fix\], related to documents \[Docs\], in developing \[WIP\] (which will not be reviewed temporarily) | ||
- Introduce main changes, results and influences on other modules in short description | ||
- Associate related issues and pull requests with a milestone |
Oops, something went wrong.