Skip to content

Commit 4341fcd

Browse files
committed
docs: make contributing a separate page
1 parent 39b5778 commit 4341fcd

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

docs/README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,7 @@ git commit -m "revert: foo bar"
124124

125125
## Contributing
126126

127-
Feel free to create a PR.
128-
129-
1. Clone the repo.
130-
2. Add your modifications
131-
3. Create a virtualenv
132-
4. Run `./scripts/test`
127+
See [Contributing](contributing.md)
133128

134129
[conventional_commits]: https://www.conventionalcommits.org
135130
[semver]: https://semver.org/

docs/contributing.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Contributing to commitizen
2+
3+
First of all, thank you for taking the time to contribute! 🎉
4+
5+
When contributing to [commitizen](https://github.com/commitizen-tools/commitizen), please first create an [issue](https://github.com/commitizen-tools/commitizen/issues) to discuss the change you wish to make before making a change.
6+
7+
If you're a first-time contributor, you can check the issues with [good first issue](https://github.com/commitizen-tools/commitizen/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) tag.
8+
9+
## Before making a pull request
10+
11+
1. Fork [the repository](https://github.com/commitizen-tools/commitizen)
12+
2. Clone the repository from you GitHub
13+
3. Setup development environment through [poetry](https://python-poetry.org/) (`poetry install`)
14+
4. Check out a new branch and add your modification
15+
5. Add test cases for all your changes
16+
(We use [CodeCov](https://codecov.io/) to ensure our test coverage does not drop.)
17+
6. Use [commitizen](https://github.com/commitizen-tools/commitizen) to do git commit
18+
7. Run `./scripts/lint` and `./scripts/test` to ensure you follow the coding style and the tests pass
19+
8. Update `READMD.md` and `CHANGELOG.md` for your changes
20+
9. Send a [pull request](https://github.com/commitizen-tools/commitizen/pulls) 🙏

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ nav:
2121
- GitLab CI: 'tutorials/gitlab_ci.md'
2222
- Github Actions: 'tutorials/github_actions.md'
2323
- Third-Party Commitizen Templates: 'third-party-commitizen.md'
24+
- Contributing: 'contributing.md'
2425

2526
markdown_extensions:
2627
- markdown.extensions.codehilite:

0 commit comments

Comments
 (0)