add CONTRIBUTING.md

This commit is contained in:
Mort Yao 2017-11-27 23:43:12 +01:00
parent 414e2c3f0b
commit 75b44b8382
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

27
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,27 @@
# How to Contribute
`you-get` is currently experimenting with an aggressive approach to handling issues. Namely, a bug report must be addressed with some code via a pull request.
## Report a broken extractor
**How-To:** Please open a new pull request with the following changes:
* Add a new test case in [tests/test.py](https://github.com/soimort/you-get/blob/develop/tests/test.py), with the failing URL(s).
The Travis CI build will (ideally) fail showing a :x:, which means you have successfully reported a broken extractor.
Such a valid PR will be either *closed* if it's fixed by another PR, or *merged* if it's fixed by follow-up commits from the reporter himself/herself.
## Report other issues / Suggest a new feature
**How-To:** Please open a pull request with the proposed changes directly.
A valid PR need not be complete (i.e., can be WIP), but it should contain at least one sensible, nontrivial commit.
## Hints
* The [`develop`](https://github.com/soimort/you-get/tree/develop) branch is where your pull request goes.
* Remember to rebase.
* Document your PR clearly, and if applicable, provide some sample links for reviewers to test with.
* Write well-formatted, easy-to-understand commit messages. If you don't know how, look at existing ones.
* We will not ask you to sign a CLA, but you must assure that your code can be legally redistributed (under the terms of the MIT license).